Technical Notes Database
TN424D.txt CALLING ANCESTORS CONSTRUCTOR
Category :Pascal
Platform :All
Product :Turbo Pascal 5.5
Description:
Q. How do you call a constructor from an ancestor's object?
A. You can call an ancestor's constructor directly from within
the constructor of the current object. For example:
Type
Type1 = Object
Constructor Init;
End;
Type2 = Object ( Type1 )
Constructor Init;
End;
Constructor Type1.Init;
Begin
End;
Constructor Type2.Init;
Begin
Type1.Init;
End;
...
Reference:
7/16/98 4:35:31 PM
Last Modified: 01-SEP-99