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{
//functionscontents go here...
}</lang>
<lang groovy>class Dog extends Animal{
//functionscontents go here...
}</lang>
<lang groovy>class Cat extends Animal{
//functionscontents go here...
}</lang>
<lang groovy>class Lab extends Dog{
//functionscontents go here...
}</lang>
<lang groovy>class Collie extends Dog{
//functionscontents go here...
}</lang>