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.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy