// rectangle.h - derived class for polymorphism demo // cmc, 11/16/2012 #ifndef RECTANGLE_H #define RECTANGLE_H #include "figure.h" class Rectangle : public Figure { public: Rectangle(char symbol, int offset, int width, int height); Rectangle(); virtual void print() const; // to override generic Figure version private: int width, height; void printLine() const; // utility for top and bottom of rectangle }; #endif