// inherit5.h By: Aiman Hanna - ©1993-2002 Aiman Hanna #ifndef INHERIT5_H #define INHERIT5_H #include class Geometric { public: // Geometric( void ); // No default constructor now. Geometric( int , int, int, int ); // This could be used as default constructor. How? 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 , int, int, int, int ); void SetBoarderShape( boarder ); private: boarder boardershape; }; #endif