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.

  1. Triangle(int length=0, int height=0): A triangle class constructor
  2. virtual int GetArea() const: An accessor that returns the area of the Triangle. The formula for area of triangle is (length * height)/2.
  3. 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 ..."
  4. virtual ~Triangle(): A virtual destructor