What is ‘this’ pointer?

Asked 6 years ago 2502 views

1 Answer


0
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#

Write Your Answer