// inherit1.h By: Aiman Hanna - ©1993-2002 Aiman Hanna #ifndef INHERIT1_H #define INHERIT1_H #include class Geometric { public: Geometric( void ); Geometric( int , int, int, int ); void Draw( void ); void Erase( void ); void Move( void ); int left, top, bottom, right; }; // Derived class from Geometric class TwoDimension : public Geometric { public: TwoDimension( void ); TwoDimension( int , int, int, int, int ); void Draw( void ); int fillpattern; }; // Derived class from TwoDimension class Rectangle : public TwoDimension { enum boarder { simple, bold, dashed, bolddashed }; public: Rectangle( void ); Rectangle( int, int, int, int, int ); void SetBoarderShape( boarder ); private: boarder boardershape; }; #endif