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/Triangle.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Polymorphism/Shapes/Triangle.h (limited to 'Polymorphism/Shapes/Triangle.h') diff --git a/Polymorphism/Shapes/Triangle.h b/Polymorphism/Shapes/Triangle.h new file mode 100644 index 0000000..b038e80 --- /dev/null +++ b/Polymorphism/Shapes/Triangle.h @@ -0,0 +1,12 @@ +#include "Shape.h" + +class Triangle : public Shape +{ +public: + Triangle(int x1, int y1, int x2, int y2, int x3, int y3); + + double getArea(); + double getPer(); + + Shape* clone(); +}; \ No newline at end of file -- cgit v1.3.1-23-gd82d