Jump to content

Inheritance/Single: Difference between revisions

m
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}}==
4,105

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.