what was this keyword used for in this video of car sorting probllem
This keyword use?
Hello @mahfoozhaque91
Basically we can use this keyword to refer to data members of our object
And incase constructor have same argument names as that of data members then this can be used to point to data member
So here assum
class ABC{
int x;
ABC(int x){
this->x=x; //here this->x points to class x
//and RHS x is local argument u are receiving
}
}