#include "shapes.h" #include #include using namespace std; int main() { Square s(5); Rectangle t(4, 6); vector v; v.push_back(&s); v.push_back(&t); for (vector::iterator i = v.begin(); i != v.end(); ++i) { cout << (*i)->area() << endl; } return 0; }