-------------------------------------------------------------------------------- This code demonstrates the order of constructors and destructors invocation when member variable of a derived class is defined. The invocation order follows the rule: 1) with simple or multiple inheritance constructors are invoked in top-down order, from constructor of the most base class to constructor of derived class for which variable is defined; 2) destructors, for the same classes, are invoked in opposite down-top order, from destructor of derived class for which class variable is defined to most base class destructor invocation; This sample, for simplicity, takes 2 classes: CBase and CDerived, publicly derived from CBase;