0 7

Object Oriented Programming05 marksThis pointer concept and uses

What are the uses of this pointer? Discuss its concept with suitable example.

What are the uses of this pointer? Discuss its concept with suitable example. [5]

The this pointer is an implicit (hidden) pointer available inside every non-static member function of a class. It automatically holds the address of the object that invoked the member function. The compiler passes it as a hidden argument to every non-static member function call. Syntax: --- Use D...

Up nextWhat is destructor? Discuss its characteristics with suitable example.