- 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?
Asked 07-Dec-2019
Viewed 2157 times
What is ‘this’ pointer
1 Answer
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++.