Anonymous user
Inheritance/Single: Difference between revisions
added python
(added ocaml) |
(added python) |
||
Line 97:
(*functions go here...*)
end</ocaml>
=={{header|Python}}==
<python>class Animal:
pass #functions go here...</python>
<python>class Dog(Animal):
pass #functions go here...</python>
<python>class Cat(Animal):
pass #functions go here...</python>
<python>class Lab(Dog):
pass #functions go here...</python>
<python>class Collie(Dog):
pass #functions go here...</python>
|