2082 5

Object Oriented Programming20825 marksThis pointer concept and uses

What is the use of this pointer? Write a program to demonstrate it.

What is the use of this pointer? Write a program to demonstrate it. [5]

The this pointer is an implicit pointer available inside every non-static member function of a class. It automatically points to the object that invoked the member function. Use Description ------------------ Resolve name conflict Distinguish between member variables and parameters with the same ...

Up nextExplain friend function and friend class with example.