What is ‘this’ pointer?

Asked 07-Dec-2019
Viewed 1681 times

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++.
  • 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?

For More Detail Please Read This Article :- Pointers in C#