Inheritance/Single: Difference between revisions

Content added Content deleted
Line 1,194: Line 1,194:


=={{header|Lisaac}}==
=={{header|Lisaac}}==
<syntaxhighlight lang="lisaac">Section Header
<syntaxhighlight lang="lisaac">
Section Header
+ name := ANIMAL;
+ name := ANIMAL;
// ...</syntaxhighlight>
// ...
<syntaxhighlight lang="lisaac">Section Header
Section Header
+ name := CAT;
+ name := CAT;
Section Inherit
Section Inherit
- parent : ANIMAL := ANIMAL;
- parent : ANIMAL := ANIMAL;
// ...</syntaxhighlight>
// ...
<syntaxhighlight lang="lisaac">Section Header
Section Header
+ name := DOG;
+ name := DOG;
Section Inherit
Section Inherit
- parent : ANIMAL := ANIMAL;
- parent : ANIMAL := ANIMAL;
// ...</syntaxhighlight>
// ...
<syntaxhighlight lang="lisaac">Section Header
Section Header
+ name := LAB;
+ name := LAB;
Section Inherit
Section Inherit
- parent : DOG := DOG;
- parent : DOG := DOG;
// ...</syntaxhighlight>
// ...
<syntaxhighlight lang="lisaac">Section Header
Section Header
+ name := COLLIE;
+ name := COLLIE;
Section Inherit
Section Inherit
- parent : DOG := DOG;
- parent : DOG := DOG;
// ...</syntaxhighlight>
// ...
</syntaxhighlight>


=={{header|Logtalk}}==
=={{header|Logtalk}}==