Inheritance/Single: Difference between revisions
Content deleted Content added
added objective c |
m lang+omit from |
||
Line 357: | Line 357: | ||
=={{header|Smalltalk}}== |
=={{header|Smalltalk}}== |
||
This is an example of the object serialization format used by many varieties of Smalltalk. Normally the class tree would be defined and navigated via a class browser within a graphical Smalltalk environment. |
This is an example of the object serialization format used by many varieties of Smalltalk. Normally the class tree would be defined and navigated via a class browser within a graphical Smalltalk environment. |
||
<lang smalltalk> Object subclass: #Animal |
|||
instanceVariableNames: ' ' "* space separated list of names *" |
instanceVariableNames: ' ' "* space separated list of names *" |
||
classVariableNames: ' ' |
classVariableNames: ' ' |
||
Line 378: | Line 378: | ||
!Dog subclass: #Collie |
!Dog subclass: #Collie |
||
"* etc. *" ! |
"* etc. *" !</lang> |
||
{{Omit From|Metafont}} |
|||
{{Omit From|AWK}} |