Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
22
Task/Inheritance-Single/Smalltalk/inheritance-single.st
Normal file
22
Task/Inheritance-Single/Smalltalk/inheritance-single.st
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
Object subclass: #Animal
|
||||
instanceVariableNames: ' ' "* space separated list of names *"
|
||||
classVariableNames: ' '
|
||||
poolDictionaries: ' '
|
||||
category: ' ' !
|
||||
|
||||
"* declare methods here, separated with '!' *"
|
||||
"* !Animal methodsFor: 'a category'! *"
|
||||
"* methodName *"
|
||||
"* method body! !"
|
||||
|
||||
!Animal subclass: #Dog
|
||||
"* etc. *" !
|
||||
|
||||
!Animal subclass: #Cat
|
||||
"* etc. *" !
|
||||
|
||||
!Dog subclass: #Lab
|
||||
"* etc. *" !
|
||||
|
||||
!Dog subclass: #Collie
|
||||
"* etc. *" !
|
||||
Loading…
Add table
Add a link
Reference in a new issue