diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-96C7CBD4-4B25-5AA1-A54F-1764B54FDC7E.dita --- a/Symbian3/PDK/Source/GUID-96C7CBD4-4B25-5AA1-A54F-1764B54FDC7E.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-96C7CBD4-4B25-5AA1-A54F-1764B54FDC7E.dita Tue Mar 30 11:56:28 2010 +0100 @@ -1,25 +1,34 @@ - - - - - -How to write a derived class with two-phase construction

When writing a derived class, you must use the derived class ConstructL() to call the correct base class ConstructL().

Call the base class ConstructL() before the derived-class specific construction starts. This mirrors the action of C++ constructors.

class CCompoundDerived : public CCompound - { -public: - ... -protected: - ... - void ConstructL(); -private: - ... - }; void CCompoundDerived::ConstructL() - { - this->CCompound::ConstructL(); - // own construction - }
\ No newline at end of file + + + + + +How +to write a derived class with two-phase constructionThis document illustrates how to implement two-phase construction +in a derived class with example code. +

When writing a derived class, you must use the derived class ConstructL() to +call the correct base class ConstructL().

+

Call the base class ConstructL() before the derived-class +specific construction starts. This mirrors the action of C++ constructors.

+class CCompoundDerived : public CCompound + { +public: + ... +protected: + ... + void ConstructL(); +private: + ... + }; +void CCompoundDerived::ConstructL() + { + this->CCompound::ConstructL(); + // own construction + } +
\ No newline at end of file