///////////////////////////////////////////////////////////////////////// // F_TopLevel.h - demonstrate how class structures becomes flexible // // // // Jim Fawcett, CSE775 - Distributed Objects, Summer 2010 // ///////////////////////////////////////////////////////////////////////// #include "F_TopLevel.h" #include F_TopLevel::F_TopLevel(void) { std::cout << "\n creating instance of F_TopLevel"; factory_LowerLevel factory; pLL = factory.createLowerLevel(); } F_TopLevel::~F_TopLevel(void) { std::cout << "\n destroying instance of F_TopLevel"; delete pLL; } void F_TopLevel::say() { std::cout << "\n instance of F_TopLevel here:"; pLL->say(); }