Inheritance/Single: Difference between revisions
→{{header|OxygenBasic}}
(→{{header|F#}}: Corrected header as suggested on the Count examples/Full list/Tier 4 talk page) |
|||
Line 1,477:
class dog
from
method show() as string
return animal.show()+"dog "
Line 1,484:
class cat
from
method show() as string
return animal.show()+"cat "
Line 1,491:
class Lab
from
method show() as string
return dog.show()+"Lab "
Line 1,498:
class Collie
from
method show() as string
return dog.show()+"Collie "
|