6 May 01:28
Magritte descriptions in hierarchies of classes
From: Miguel Enrique Cobá Martínez <m.coba.m <at> gmail.com>
Subject: Magritte descriptions in hierarchies of classes
Newsgroups: gmane.comp.lang.smalltalk.smallwiki
Date: 2008-05-05 23:28:43 GMT
Subject: Magritte descriptions in hierarchies of classes
Newsgroups: gmane.comp.lang.smalltalk.smallwiki
Date: 2008-05-05 23:28:43 GMT
Suppose I have a hierarchy like this: Object subclass: #ClassA instanceVariableNames: 'name' classVariableNames: '' poolDictionaries: '' category: 'Example' ClassA subclass: #ClassB instanceVariableNames: 'bInstVar' classVariableNames: '' poolDictionaries: '' category: 'Example' ClassB subclass: #ClassC1 instanceVariableNames: 'c1InstVar' classVariableNames: '' poolDictionaries: '' category: 'Example' ClassB subclass: #ClassC2 instanceVariableNames: 'c2InstVar' classVariableNames: '' poolDictionaries: '' category: 'Azteca-Model' ClassA is just an abstract parent with the common functionality for the other classes. Same for ClassB. Only objects from ClassC1 and ClassC2 are to be created.(Continue reading)
RSS Feed