[fpc-pascal]about create method

Michael Van Canneyt michael.vancanneyt at wisa.be
Fri Oct 12 09:09:13 CEST 2001


On Fri, 12 Oct 2001, Ivan Montes wrote:

> 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?
>

For the constructor not really (TObject.Create is not virtual, and empty),
but for the destructor it  is absolutely necessary.
But it is good practice always to call the inherited constructor/destructor.

Michael.






More information about the fpc-pascal mailing list