+ 5
What is the use of "this" pointer and how it is used??
2 Answers
+ 4
Hi ,
C++Ā thisĀ Pointer. Every object inĀ C++ has access to its own address through an importantĀ pointerĀ
called this pointer.
The thisĀ pointerĀ is an implicit parameter to all member functions.
Therefore, inside a member function, this may be used to refer to the invoking object.
+ 1
thanks Nanda