What is this->x and what is this->y?

what is this->x and what is this->y?

@sroy3166 this is used to reference the current class, here this->x = x means that class’ member x is initialized to given parameter x. If we use parameter name different than class member then we don’t need to use this.
eg:
class Car{
int x,y;
public:
Car(int a,int b){
x=a; // we can also do as this->x = a
y=b;
}
};