Declaration in CAR constructor

what is this-> x=x is it the same as
car.x=x?

hello @pranaynigam
this pointer is an internal pointer that points to the object.

if member variable and local variable has same name then in that case we use this pointer with member variable to distinguksh between them.

class A{
int x;
A(int x){
    this->x=x;  //here this->x is member variable
                      //and RHS x is local argument u are receiving

}
}