what is mean by
this-> x=x;
this->=y;
or is their any other way of writing this
Understanding one concept
Hello @TheSourabh the only keyword used here is ‘this’ which must be new for you .
if you want to do without this then also it will work fine. but it always preferred to do with this keyword.
Happy Learning!!
but what is the meaning of this and how actually it works
Hello @TheSourabh it is always preferred to use this keyword in to avoid naming conflicts in the constructor/method of your instance/object.
it is always preferrable to use this keyword.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.