Implement a graphics System that has classes for various figures: rectangles, squares, triangles and circles. A rectangle has data members height, width, color , and center point. A square has center point and an edge and color . A circle has data members center, color and radius. The several specific shape classes are derived from a common class, Figure.
Implement classes Rectangle, Square, Triangle and Circle classes and derive them from class Figure.
In addition to constructor, destructor and set/get functions, each class has two virtual functions erase and draw to draw or erase the shape.
To draw or erase a figure you must use OpenGL graphics library.