From e318d44b1fbdc4daefbbfe631a45087634add6ee Mon Sep 17 00:00:00 2001 From: Angeld55 Date: Thu, 19 Sep 2019 21:18:25 +0300 Subject: Rename Polymorphism/Circle.hpp to Polymorphism/Figures/Circle.hpp --- Polymorphism/Circle.hpp | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 Polymorphism/Circle.hpp (limited to 'Polymorphism/Circle.hpp') diff --git a/Polymorphism/Circle.hpp b/Polymorphism/Circle.hpp deleted file mode 100644 index f36d379..0000000 --- a/Polymorphism/Circle.hpp +++ /dev/null @@ -1,20 +0,0 @@ -class Circle : public Figure -{ - int radius; -public: - Circle(int x, int y, int r) : Figure(1) - { - setPoint(0, x, y); - if (r < 0) - r = 0; - radius = r; - } - double getPer() - { - return 2 * PI * radius; - } - double getArea() - { - return radius*radius*PI; - } -}; \ No newline at end of file -- cgit v1.3.1-23-gd82d