#pragma once ///////////////////////////////////////////////////////////////////////// // TopLevel.h - demonstrate how class structures become rigid // // // // Jim Fawcett, CSE775 - Distributed Objects, Summer 2010 // ///////////////////////////////////////////////////////////////////////// /* Note: When client includes this file, e.g., TopLevel.h, it also gets LowerLevel.h. So if the implementation of LowerLevel changes, perhaps to add a new data member, the client must be recompiled. */ #include "LowerLevel.h" class TopLevel { public: TopLevel(void); ~TopLevel(void); void say(); private: LowerLevel ll; // here's the problem };