From 92e8d2a1aefce843e9635632cc13b9c512fea734 Mon Sep 17 00:00:00 2001 From: Angeld55 Date: Wed, 20 May 2020 03:04:17 +0300 Subject: fixed poly --- Polymorphism/Shapes/Circle.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Polymorphism/Shapes/Circle.h (limited to 'Polymorphism/Shapes/Circle.h') 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 -- cgit v1.3.1-23-gd82d