Inheritance/Single: Difference between revisions
Content deleted Content added
Added Kotlin |
|||
Line 548: | Line 548: | ||
=={{header|Elena}}== |
=={{header|Elena}}== |
||
<lang elena> |
<lang elena>class Animal |
||
#class Animal |
|||
{ |
{ |
||
// ... |
// ... |
||
} |
} |
||
class Dog :: Animal |
|||
{ |
{ |
||
// ... |
// ... |
||
} |
} |
||
class Lab :: Dog |
|||
{ |
{ |
||
// ... |
// ... |
||
} |
} |
||
class Collie :: Dog |
|||
{ |
{ |
||
// ... |
// ... |
||
} |
} |
||
class Cat :: Animal |
|||
{ |
{ |
||
// ... |
// ... |