The Triangle class

The Triangle class publicly derives from Shape class. The Triangle class will have two private, integer data members: length and height. The class must implement the following functions:

  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.
  3. virtual void Draw() const: This function should output a string so that we can identify when the Triangle's Draw function is called. E.g., "Drawing a triangle ..."
  4. virtual ~Triangle(): A virtual destructor