From 110481bee48bdb18f3d635cbc507aac1acc7c694 Mon Sep 17 00:00:00 2001 From: angeld55 Date: Tue, 24 May 2022 20:10:50 +0300 Subject: added shapes collection --- Sem. 12/Example_polymorphism/Triangle.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Sem. 12/Example_polymorphism/Triangle.h') diff --git a/Sem. 12/Example_polymorphism/Triangle.h b/Sem. 12/Example_polymorphism/Triangle.h index c157de8..3f7f8cb 100644 --- a/Sem. 12/Example_polymorphism/Triangle.h +++ b/Sem. 12/Example_polymorphism/Triangle.h @@ -9,4 +9,6 @@ public: Triangle(int x1, int y1, int x2, int y2, int x3, int y3); double getArea() const override; double getPer() const override; + bool isPointIn(int x, int y) const override; + }; \ No newline at end of file -- cgit v1.3.1-23-gd82d