From 3b72a71c413f70afe65d32a8f348bfe855a7f0a3 Mon Sep 17 00:00:00 2001 From: Angeld55 Date: Sat, 21 Sep 2019 12:21:01 +0300 Subject: Update Rectangle.hpp --- Polymorphism/Figures/Rectangle.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Polymorphism/Figures/Rectangle.hpp b/Polymorphism/Figures/Rectangle.hpp index 99b4b50..7021886 100644 --- a/Polymorphism/Figures/Rectangle.hpp +++ b/Polymorphism/Figures/Rectangle.hpp @@ -15,6 +15,6 @@ public: } double getArea() { - return getPoint(0).getDistTo(getPoint(1))* getPoint(1).getDistTo(getPoint(2)); + return getPoint(0).getDistTo(getPoint(1))* getPoint(1).getDistTo(getPoint(2)); } }; -- cgit v1.3.1-23-gd82d