- This can be used to pass the current object as a parameter to another method.
- This can be used to refer to the current class instance variable.
- This can be used to declare indexers.
What is ‘this’ pointer?
Viewed 1681 times
What is ‘this’ pointer
Into C++ programming language, 'this' is a keyword that refers to the current instance of the class. There can be 3 main usages of this keyword in C++.