#include using namespace std; class Rectangle { int width, height; public: void set_values (int &a,int &b); int area () {return width*height;} }; void Rectangle::set_values (int &a, int &b) { width = a; height =b; } int main () { Rectangle rect, rectb; int x; int y; x =10 ; y = 4; rect.set_values (x,y); // rectb.set_values (5,6); cout << "rect area: " << rect.area() << endl; // cout << "rectb area: " << rectb.area() << endl; return 0; }