Jump to content

Inheritance/Single: Difference between revisions

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

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.