Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "todo/rectangle.h"
- #include "todo/square.h"
- #include "todo/plane.h"
- using namespace std;
- using namespace osfes;
- int main()
- {
- Plane plane(10, 20);
- Rectangle* tab[2];
- tab[0] = new Rectangle(1, 2, 3, 4, plane);
- tab[1] = new Square(1, 2, 3, plane);
- cout << tab[0]->getName() << endl;
- cout << tab[1]->getName() << endl;
- delete tab[0];
- delete tab[1];
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement