Inheritance/Single: Difference between revisions
Content deleted Content added
added swift |
Add Nimrod |
||
Line 972: | Line 972: | ||
@3E2AD6A0 RInheritSingle_Collie RInheritSingle_Dog |
@3E2AD6A0 RInheritSingle_Collie RInheritSingle_Dog |
||
</pre> |
</pre> |
||
=={{header|Nimrod}}== |
|||
<lang nimrod>type |
|||
Animal = object of TObject |
|||
Dog = object of Animal |
|||
Cat = object of Animal |
|||
Lab = object of Dog |
|||
Collie = object of Dog</lang> |
|||
=={{header|Objective-C}}== |
=={{header|Objective-C}}== |