So this question is probably a duplicate but when I search I don't find anything. So in C++ if I have
class Foo{
public:
int x;
int y;
Foo(int x, int y);
};
and
Foo(int xIn, int yIn){
x = xIn;
y = yIn;
}
isn't there a way to do the assignment with this
? So you don't have to change the name for the variables being passed in?