[fpc-pascal]about create method
Ivan Montes
Drslump at btopenworld.com
Fri Oct 12 03:34:42 CEST 2001
Hi,
It's just a simple question.
Since every class is derived from tObject, when I implement a Constructor in
my class I have to call "inherited create;"
or is not necesary?
thks, Ivan
i.e:
myClass = CLASS
constructor create;
destructor destroy;
end;
constructor myClass.create;
begin
inherited Create; // Is it necessary?
//my initialization routine
end;
destructor myClass.destroy;
begin
//my deinitialization routine
inherited destroy; // Is it necessary
end;
More information about the fpc-pascal
mailing list