The Shape class
The Shape class contains two virtual functions - GetArea() and Draw(). The GetArea() function is also a pure virtual function. Hence Shape is an abstract base class, meaning you cannot instantiate it. The function prototypes are given as follows:
- virtual int GetArea() const = 0;
- virtual void Draw() const;