Abstract type: Difference between revisions
Content added Content deleted
(→{{header|Lua}}: Appended Mathematica solution) |
No edit summary |
||
Line 1,359: | Line 1,359: | ||
var attr: Int |
var attr: Int |
||
end</lang> |
end</lang> |
||
=={{header|Oberon-2}}== |
|||
{{Works with|oo2c Version 2}} |
|||
<lang oberon2> |
|||
TYPE |
|||
Animal = POINTER TO AnimalDesc; |
|||
AnimalDec = RECORD [ABSTRACT] END; |
|||
(* Cat inherits from Animal *) |
|||
Cat = POINTER TO CatDesc; |
|||
CatDesc = RECORD (AnimalDesc) END; |
|||
</lang> |
|||
=={{header|Objeck}}== |
=={{header|Objeck}}== |