class Rectangle {
int x, y;
public:
void set_values (int,int);
int area (void) {return (x*y);}
};
void Rectangle::set_values (int a, int b) {
x = a;
y = b;
}
I have this class inside of function of another class its giving error: a function-definition is not allowed here before ‘{’ token could you say me why?