Inheritance/Single: Difference between revisions
Content deleted Content added
Drkameleon (talk | contribs) No edit summary |
|||
Line 96:
ENDOBJECT
</lang>
=={{header|Arturo}}==
<lang arturo>Animal #{
numberOfFeet 0
}
Dog $(inherit ~Animal #{
numberOfFeet 4
breed ""
name ""
init {
// some initialization for Dog's
}
})
Lab $(inherit ~Dog #{
breed "labrador"
init [n]{
name n
}
})
myLab $(new ~Lab "Max")
log myLab</lang>
{{out}}
<pre>#{
breed "labrador"
init <function: 0x110647F20>
name "Max"
numberOfFeet 4
}</pre>
=={{header|AutoHotkey}}==
|