| Delphi .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280) |
Calling base class constructors and destructors
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:
Comments:
| ||||||||||||||||||||||||||||||||||||