diff options
Rename Polymorphism/main.cpp to Polymorphism/Figures/main.cpp
1 files changed, 0 insertions, 20 deletions
| -rw-r--r-- | Polymorphism/main.cpp | 20 |
diff --git a/Polymorphism/main.cpp b/Polymorphism/main.cpp deleted file mode 100644 index 39336c3..0000000 --- a/Polymorphism/main.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include "Figure.h"
-
-
-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;
- }
-
-
-}
-
-
|
