at 2:00
why we use this->x=x;
and not x=x?
Doubt in lecture
- x is local variable in the function because it is present in the parameters
using x=x it will not change the value of data member x
either change the name of parameter or use this pointer