00001 #ifndef TRIANGLE_H_ 00002 #define TRIANGLE_H_ 00003 00004 #include "shape.h" 00005 00014 class Triangle : public Shape 00015 { 00016 private: 00018 int base; 00020 int height; 00021 00022 public: 00023 00033 Triangle(int b,int h,int x,int y); 00034 00043 Triangle(int b,int h,Point c); 00044 00052 virtual std::string getType() const; 00053 00062 virtual double getArea() const; 00063 }; 00064 00065 #endif