| Delphi .NET (2) Database (71) Delphi IDE (90) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280) New related comments Number of comments in the last 48 hours Access the current row/column of a TMemo |
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:
|