From 92e8d2a1aefce843e9635632cc13b9c512fea734 Mon Sep 17 00:00:00 2001 From: Angeld55 Date: Wed, 20 May 2020 03:04:17 +0300 Subject: fixed poly --- Polymorphism/Figures/main.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 Polymorphism/Figures/main.cpp (limited to 'Polymorphism/Figures/main.cpp') diff --git a/Polymorphism/Figures/main.cpp b/Polymorphism/Figures/main.cpp deleted file mode 100644 index 2b4eb23..0000000 --- a/Polymorphism/Figures/main.cpp +++ /dev/null @@ -1,24 +0,0 @@ - -#include "Figure.hpp" -#include "Triangle.hpp" -#include "Rectangle.hpp" -#include "Circle.hpp" - - -int main() -{ - Figure** arr= new Figure*[3]; - arr[0] = new Triangle(15, 15, 15, 30, 50, 30); - arr[1] = new Rectangle(15, 15, 50, 30); - arr[2] = new Circle(1, 2, 9); - - for (int i = 0; i < 3; i++) - { - cout << arr[i]->getPer()<getArea()<