at 1:56 time of video, sir uses the syntax this-> to set the values of the class members in the parametrised constructor. Pls explain the syntax of this-> as this hasnt been taught in the videos of OOPS
Usage of this->
hello @vector.9974
this is internal pointer that contains address of ur object . (note : compiler declare this on its own we dont have to delcare or initialise it)
so this stament this->member_variable is just accesing that member variable.
we use this when member variable name is same as local variable to distinguish them
thank you sir…