diff options
fixed poly
1 files changed, 16 insertions, 0 deletions
| -rw-r--r-- | Polymorphism/Shapes/Circle.h | 16 |
diff --git a/Polymorphism/Shapes/Circle.h b/Polymorphism/Shapes/Circle.h new file mode 100644 index 0000000..c648690 --- /dev/null +++ b/Polymorphism/Shapes/Circle.h @@ -0,0 +1,16 @@ +#include "Shape.h" + +const double PI = 3.14; +class Circle : public Shape +{ + + int radius; +public: + Circle(int x, int y, int radius); + + double getArea(); + double getPer(); + + Shape* clone(); + +};
\ No newline at end of file |
