What would be the difference if i font use this keyword and directly assign values to front rear etc
Can i declare class without 'this' keyword?
@tusharnitharwal no you can totally do that without any issue.
If for example there is a function like this, and you have a data member called val
in the class, THEN it is necessary to use this
keyword
void function(int data) {
this->data = data;
}
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.