Inheritance/Single: Difference between revisions
m
→{{header|Kotlin}}
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}}==
Line 971 ⟶ 985:
Casey is a collie
</pre>
=={{header|Lasso}}==
|