This is similar to ―this pointer in C++.
It represents current working object.
It is used to access the members of current working object.
Current object: The object, with which object, the method is called.
“this” keyword can‘t be used in the static methods, because static methods doesn‘t have current object.
It represents current working object.
It is used to access the members of current working object.
- this.field
- this.property
- this.method()
Current object: The object, with which object, the method is called.
“this” keyword can‘t be used in the static methods, because static methods doesn‘t have current object.