#include "Rectangle.cpp" int main() { Shape shape(0x333333, 5); Shape &shape_ref = shape, *shape_ptr = &shape; Rectangle rectangle(0xffffff, 2, 10, 20); Shape &rect_ref = rectangle, *rect_ptr = &rectangle; cout << "Shape area: " << shape.getArea() << endl; cout << "Shape reference area: " << shape_ref.getArea() << endl; cout << "Shape pointer area: " << shape_ptr->getArea() << endl; cout << endl; cout << "Rectangle area: " << rectangle.getArea() << endl; cout << "Rectangle reference area: " << rect_ref.getArea() << endl; cout << "Rectangle pointer area: " << rect_ptr->getArea() << endl; }