Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
7
Task/Abstract-type/Oberon-2/abstract-type.oberon-2
Normal file
7
Task/Abstract-type/Oberon-2/abstract-type.oberon-2
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
TYPE
|
||||
Animal = POINTER TO AnimalDesc;
|
||||
AnimalDec = RECORD [ABSTRACT] END;
|
||||
|
||||
(* Cat inherits from Animal *)
|
||||
Cat = POINTER TO CatDesc;
|
||||
CatDesc = RECORD (AnimalDesc) END;
|
||||
Loading…
Add table
Add a link
Reference in a new issue