// shape2.h #ifndef SHAPE2_H #define SHAPE2_H // // Demonstrate simple class inheritance and its test program all in one file // the Shape2 class provides the center for specific shapes that inherit it class Shape2 // demonstrate a base class { public: void Move(double X, double Y); // move center of shape to new X,Y double Xc(); // return Xcenter double Yc(); // return Ycenter private: double Xcenter; double Ycenter; }; // end Shape2 #endif // SHAPE2_H