RosettaCodeData/Task/Inheritance-Single/Seed7/inheritance-single.seed7
Ingy döt Net 6f050a029e update
2013-06-05 21:47:54 +00:00

21 lines
329 B
Text

$ include "seed7_05.s7i";
const type: Animal is new struct
# ...
end struct;
const type: Dog is sub Animal struct
# ...
end struct;
const type: Lab is sub Dog struct
# ...
end struct;
const type: Collie is sub Dog struct
# ...
end struct;
const type: Cat is sub Animal struct
# ...
end struct;