+1 vote
in Class 12 by kratos

What are this and *this? How are these two different?

1 Answer

+4 votes
by kratos
 
Best answer

this is a pointer to the object whose member function is being ****. It is a pointer to the object itself while *this is an object pointed by the pointer this.

...