Inheritance/Single: Difference between revisions

Line 929:
];
</lang>
 
=={{header|Julia}}==
<lang julia>
abstract type Animal end
 
abstract type Dog end
 
abstract type Cat end
 
struct Lab <: Dog end
 
struct Collie <: Dog end
</lang>
 
 
=={{header|Kotlin}}==
4,102

edits