int main () { CSquare sqr; //pilha CRectangle rect; //pilha sqr.set_side(4); rect.convert(sqr); cout << rect.area(); return 0; }
int main() { CSquare sqr; CRectangle rect; sqr.set_side(4); rect.convert(sqr); cout << rect.area() << endl; return 0; }