Inheritance/Single: Difference between revisions
Content deleted Content added
m →{{header|Lisaac}}: 5*s->1 |
m →{{header|OCaml}}: 5*s->1 |
||
Line 1,525:
=={{header|OCaml}}==
<syntaxhighlight lang="ocaml">
class animal =
object (self)
(*functions go here...*)
end
object (self)
inherit animal
(*functions go here...*)
end
object (self)
inherit animal
(*functions go here...*)
end
object (self)
inherit dog
(*functions go here...*)
end
object (self)
inherit dog
(*functions go here...*)
end
</syntaxhighlight>
=={{header|Odin}}==
|