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