// inherit6.h By: Aiman Hanna - ©1993-2002 Aiman Hanna #ifndef INHERIT6_H #define INHERIT6_H #include class Geometric { public: Geometric( int lf = 0, int tp = 0, int bt = 0, int rt = 0 ); // Now, this is a default constructor. void Draw( void ); void Erase( void ); void Move( void ); protected: 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 lf , int tp, int bt, int rt, int fill ); void SetBoarderShape( boarder ); private: boarder boardershape; }; #endif