Anonymous user
Abstract type: Difference between revisions
no edit summary
(→{{header|Lua}}: Appended Mathematica solution) |
No edit summary |
||
Line 1,359:
var attr: Int
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}}==
|