#ifndef Triangle_h
#define Triangle_h

#include "Shape.h"

// a Triangle is a Shape
class Triangle: public Shape {

 public:

  // create with base b and height h
  Triangle( float b, float h );
  // create with 3 sides
  Triangle( float a, float b, float c );
  ~Triangle() override;

  // specific functions for triangles: get base, height and sides
  float base() const;
  float height() const;
  float sideA() const;
  float sideB() const;

  // redeclaration of functions to compute area and perimeter
  // to perform specific calculations for triangles
  float area()      const override;
  float perimeter() const override;

 private:

  // specific data for triangles: sides
  float sA;
  float sB;
  float sC;

};

#endif

