Anonymous user
Inheritance/Single: Difference between revisions
m
→{{header|Perl 6}}: modernize
(→{{header|TXR}}: There is OOP now with structs.) |
m (→{{header|Perl 6}}: modernize) |
||
Line 1,269:
=={{header|Perl 6}}==
{{works with|Rakudo|
<lang perl6>class Animal {}
class Dog is Animal {}
Line 1,276:
class Collie is Dog {}
say
say
{{out}}
<pre>
The <tt>.^parents</tt> notation indicates a method call to the object's metaobject rather than to the object itself.
|