Website Summary Files Commits Branches @commit @diff @stats
path: root / Polymorphism / Figures / main.cpp
diff options
context:
space:
mode:
Commit92e8d2a1aefce843e9635632cc13b9c512fea734 (patch)
Author
 Angeld55 <angel_dimitriev@abv.bg>
2020-05-20 03:04:17 +0300
Committer
 Angeld55 <angel_dimitriev@abv.bg>
2020-05-20 03:04:17 +0300
Files0f853ea7b9b5eb2a78c8fadff7c7ead659394d3e /Polymorphism/Figures/main.cpp
Object-oriented_programming_FMI-92e8d2a1aefce843e9635632cc13b9c512fea734.tar
Object-oriented_programming_FMI-92e8d2a1aefce843e9635632cc13b9c512fea734.tar.gz
Object-oriented_programming_FMI-92e8d2a1aefce843e9635632cc13b9c512fea734.zip
Parent495fe9ae299e81c213161d992d05cc11a403a1d7 (diff)
fixed poly
1 files changed, 0 insertions, 24 deletions
-rw-r--r--Polymorphism/Figures/main.cpp24
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()<<endl;
- cout << arr[i]->getArea()<<endl;
- }
-
-
-}
-
-