A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
13
Task/Inheritance-Single/Ada/inheritance-single.ada
Normal file
13
Task/Inheritance-Single/Ada/inheritance-single.ada
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package Inheritance is
|
||||
type Animal is tagged private;
|
||||
type Dog is new Animal with private;
|
||||
type Cat is new Animal with private;
|
||||
type Lab is new Dog with private;
|
||||
type Collie is new Dog with private;
|
||||
private
|
||||
type Animal is tagged null record;
|
||||
type Dog is new Animal with null record;
|
||||
type Cat is new Animal with null record;
|
||||
type Lab is new Dog with null record;
|
||||
type Collie is new Dog with null record;
|
||||
end Inheritance;
|
||||
Loading…
Add table
Add a link
Reference in a new issue