#include #include using std::cout; using std::endl; using std::string; class CCat { public: CCat(); ~CCat(); }; CCat::CCat() { cout << "The cat now exists" << endl; } CCat::~CCat() { cout << "The cat is dead" << endl; } class CDog { public: CDog(); ~CDog(); }; CDog::CDog() { cout << "The dog now exists" << endl; } CDog::~CDog() { cout << "The dog is dead" << endl; } class CMan { private: CCat m_Cat; CDog m_Dog; public: CMan(); ~CMan(); }; CMan::CMan(): m_Dog(), m_Cat() { cout << "The man now exists" << endl; } CMan::~CMan() { cout << "The man is dead" << endl; } void main() { CMan Man; }