#pragma once ///////////////////////////////////////////////////////////////////////// // F_TopLevel.h - demonstrate how class structures becomes flexible // // // // Jim Fawcett, CSE775 - Distributed Objects, Summer 2010 // ///////////////////////////////////////////////////////////////////////// /* Note: IF_LowerLevel.h contains an interface and factory, but no implementation details, so any change to the implementation of LowerLevel will not affect F_TopLevel or its clients. Any class that implements the IF_LowerLevel interface can be used in place of F_LowerLevel with no change to either F_TopLevel or its clients. */ #include "IF_LowerLevel.h" class F_TopLevel { public: F_TopLevel(void); ~F_TopLevel(void); void say(); private: IF_LowerLevel* pLL; // another improvement };