C++ and Delphi Class Models
(Redirected from C++ and Object Pascal Models)
Go Up to Language Support for the RAD Studio Libraries (C++)
The C++ and Delphi class models are different in both obvious and subtle ways. One of the most obvious differences is that C++ allows multiple inheritance while Delphi is restricted to a single inheritance model. In addition, C++ and Delphi are subtly different in the way they create, initialize, reference, copy, and destroy objects. These differences and their impact on C++Builder Delphi style classes are described in this section.
Topics
- Inheritance and Interfaces
- Object Identity and Instantiation
- Object Construction for C++Builder Libraries
- Calling Virtual Methods in Base Class Constructors
- Object Destruction
- AfterConstruction and BeforeDestruction
- Class Virtual Functions