Inheritance/Single: Difference between revisions
m
→{{header|Self}}: 5*s->1
m (→{{header|Phix}}: use pygments) |
m (→{{header|Self}}: 5*s->1) |
||
Line 2,090:
=={{header|Self}}==
Self is a class-free, object-oriented language, and as such, it uses prototypal inheritance instead of classical inheritance. This is an example of the relevant excerpts from a Self transporter fileout. Normally the object tree would be built and navigated within the graphical Self environment.
<syntaxhighlight lang="self"
animal = ()
collie = (| parent* = dog |)
</syntaxhighlight>
=={{header|Sidef}}==
|