Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
18
Task/Inheritance-Single/Oberon-2/inheritance-single.oberon-2
Normal file
18
Task/Inheritance-Single/Oberon-2/inheritance-single.oberon-2
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
MODULE Animals;
|
||||
TYPE
|
||||
Animal = POINTER TO AnimalDesc;
|
||||
AnimalDesc = RECORD [ABSTRACT] END;
|
||||
|
||||
Cat = POINTER TO CatDesc;
|
||||
CatDesc = RECORD (AnimalDesc) END;
|
||||
|
||||
Dog = POINTER TO DogDesc;
|
||||
DogDesc = RECORD (AnimalDesc) END;
|
||||
|
||||
Lab = POINTER TO LabDesc;
|
||||
LabDesc = RECORD (DogDesc) END;
|
||||
|
||||
Collie = POINTER TO CollieDesc;
|
||||
CollieDesc = RECORD (DogDesc) END;
|
||||
|
||||
END Animals.
|
||||
Loading…
Add table
Add a link
Reference in a new issue