Delphi IDE (89)
Windows with Delphi (280)
Calling base class constructors and destructors
This article has not been rated yet. After reading, feel free to leave comments and rate it.
If you're writing a derived-class constructor, you'll want to pass the constructor parameters to the base class constructor, as in this example:
However, if your derived-class constructor has the same parameters as the base class constructor, you don't have to specify the constructor method name or parameters, and you can simply write:
Destructors: you usually should first free your custom allocated members etc. and then call the derived destructor: