Inheritance/Single: Difference between revisions
Content deleted Content added
{{Omit From|ALGOL 68}} <!-- it isn't immediately obvious that ALGOL 68 is object oriented --> |
|||
Line 127:
=={{header|Groovy}}==
<lang groovy>class Animal{
//
}</lang>
<lang groovy>class Dog extends Animal{
//
}</lang>
<lang groovy>class Cat extends Animal{
//
}</lang>
<lang groovy>class Lab extends Dog{
//
}</lang>
<lang groovy>class Collie extends Dog{
//
}</lang>
|