///////////////////////////////////////////////////////////////////////// // MF_Client.cpp - demonstrate how class structures becomes // // more flexible // // // // Jim Fawcett, CSE775 - Distributed Objects, Summer 2010 // ///////////////////////////////////////////////////////////////////////// /* Note: When this client includes MF_TopLevel.h, below, that file does not include MF_LowerLevel.h, for reasons we will see in the next file. So changes to the implementation of LowerLevel will not affect this, or other, clients of MF_TopLevel. */ #include "MF_TopLevel.h" #include struct cosmetic { ~cosmetic() { std::cout << "\n\n"; } } cosmetic_; void main() { std::cout << "\n Demonstrating more flexible class structure"; std::cout << "\n =============================================\n"; MF_TopLevel mftl; mftl.say(); }