Inheritance/Single: Difference between revisions
Content added Content deleted
m (→{{header|Lingo}}: 5*s->1) |
m (→{{header|Lisaac}}: 5*s->1) |
||
Line 1,194: | Line 1,194: | ||
=={{header|Lisaac}}== |
=={{header|Lisaac}}== |
||
<syntaxhighlight lang="lisaac"> |
<syntaxhighlight lang="lisaac"> |
||
Section Header |
|||
+ name := ANIMAL; |
+ name := ANIMAL; |
||
// ... |
// ... |
||
Section Header |
|||
+ name := CAT; |
+ name := CAT; |
||
Section Inherit |
Section Inherit |
||
- parent : ANIMAL := ANIMAL; |
- parent : ANIMAL := ANIMAL; |
||
// ... |
// ... |
||
Section Header |
|||
+ name := DOG; |
+ name := DOG; |
||
Section Inherit |
Section Inherit |
||
- parent : ANIMAL := ANIMAL; |
- parent : ANIMAL := ANIMAL; |
||
// ... |
// ... |
||
Section Header |
|||
+ name := LAB; |
+ name := LAB; |
||
Section Inherit |
Section Inherit |
||
- parent : DOG := DOG; |
- parent : DOG := DOG; |
||
// ... |
// ... |
||
Section Header |
|||
+ name := COLLIE; |
+ name := COLLIE; |
||
Section Inherit |
Section Inherit |
||
- parent : DOG := DOG; |
- parent : DOG := DOG; |
||
// ... |
// ... |
||
</syntaxhighlight> |
|||
=={{header|Logtalk}}== |
=={{header|Logtalk}}== |