diff options
1 files changed, 0 insertions, 24 deletions
| -rw-r--r-- | Polymorphism/Figures/main.cpp | 24 |
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;
- }
-
-
-}
-
-
|
