circle.h
1 #ifndef CIRCLE_H_
2 #define CIRCLE_H_
3 
4 #include "shape.h"
5 
14 class Circle : public Shape
15 {
16  private:
17 
19  int radius;
20 
21  public:
22 
31  Circle(int r,int x,int y);
32 
40  Circle(int r,Point c);
41 
49  virtual std::string getType() const;
50 
59  virtual double getArea() const;
60 };
61 
62 #endif
Circle(int r, int x, int y)
Definition: circle.cpp:7
virtual double getArea() const
Definition: circle.cpp:27
Definition: shape.h:16
Definition: circle.h:14
virtual std::string getType() const
Definition: circle.cpp:21
Definition: point.h:12