The Rectangle class
The Rectangle class publicly derives from Shape class. The Rectangle class will have two private data members - Length and Width. You may assume them to be integers. In addition to that, the class will have following functions, which you need to implement
- Rectangle(int length=0, int width=0): A rectangle class constructor.
- virtual int GetArea() const: An accessor that returns the area of the Rectangle. The formula for area of rectangle is length * width.
- virtual void Draw() const: This function should output a string such that we can identify that Rectangle's Draw function is called. For e.g., "Drawing a rectangle ..."
- virtual ~Rectangle(): A virtual destructor