Inheritance/Single: Difference between revisions
Content added Content deleted
m (→{{header|Groovy}}: 5*s->1) |
m (→{{header|Haxe}}: 5*s->1) |
||
Line 892: | Line 892: | ||
=={{header|Haxe}}== |
=={{header|Haxe}}== |
||
<syntaxhighlight lang="haxe"> |
<syntaxhighlight lang="haxe"> |
||
class Animal { |
|||
// ... |
// ... |
||
} |
|||
⚫ | |||
class Cat extends Animal { |
|||
// ... |
// ... |
||
} |
|||
}</syntaxhighlight> |
|||
class Dog extends Animal { |
|||
// ... |
// ... |
||
} |
|||
}</syntaxhighlight> |
|||
class Lab extends Dog { |
|||
// ... |
// ... |
||
} |
|||
}</syntaxhighlight> |
|||
class Collie extends Dog { |
|||
// ... |
// ... |
||
} |
|||
}</syntaxhighlight> |
|||
⚫ | |||
== Icon and {{header|Unicon}} == |
== Icon and {{header|Unicon}} == |