+ 1
This keyword
I've watched many videos and tutorial about this keyword but until now i can understand exactly what does it mean .?
2 Answers
+ 2
"this" keyword is used for accessing objects. The "this" keyword references directly the object name, and even when the object variable value get changed it can still be accessed if there are other references to that object. I think below code should be able to help.
https://code.sololearn.com/W9Q4hLE7FYFO/?ref=app
+ 6
Taib Rasheed
The 'this' keyword refers to the 'current object'.
Note that 'this' is not a variable. It is a keyword, and its value cannot be changed.
https://www.sololearn.com/discuss/1839464/?ref=app