Inheritance/Single: Difference between revisions
Content deleted Content added
m lang+omit from |
→{{header|Smalltalk}}: + Tcl |
||
Line 379: | Line 379: | ||
!Dog subclass: #Collie |
!Dog subclass: #Collie |
||
"* etc. *" !</lang> |
"* etc. *" !</lang> |
||
=={{header|Tcl}}== |
|||
<lang Tcl> |
|||
oo::class create Animal { |
|||
... |
|||
} |
|||
oo::class create Dog { |
|||
superclass Animal |
|||
... |
|||
} |
|||
oo::class create Cat { |
|||
superclass Animal |
|||
... |
|||
} |
|||
oo::class create Collie { |
|||
superclass Dog |
|||
... |
|||
} |
|||
oo::class create Lab { |
|||
superclass Dog |
|||
... |
|||
} |
|||
</lang> |
|||
{{Omit From|Metafont}} |
{{Omit From|Metafont}} |