#pragma once ///////////////////////////////////////////////////////////////////////// // MF_TopLevel.h - demonstrate how class structures becomes // // more flexible // // // // Jim Fawcett, CSE775 - Distributed Objects, Summer 2010 // ///////////////////////////////////////////////////////////////////////// /* Note: The forward declaration of MF_LowerLevel, below, is all that is needed for MF_TopLevel since it holds a pointer to an instance of MF_LowerLevel, not an actual instance. Therefore, clients of MF_TopLevel do not see the text of MF_LowerLevel.h and are not bound to its implementation. */ class MF_LowerLevel; class MF_TopLevel { public: MF_TopLevel(void); ~MF_TopLevel(void); void say(); private: MF_LowerLevel* pMFLL; // improvement here };