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