RosettaCodeData/Task/Inheritance-Single/DWScript/inheritance-single.dw

13 lines
244 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
type
Animal = class(TObject)
private
// private functions/variables
public
// public functions/variables
end;
type Dog = class(Animal) end;
type Cat = class(Animal) end;
type Collie = class(Dog) end;
type Lab = class(Dog) end;