Object Oriented Programming20805 marksThis pointer for name conflict resolution
How 'this' pointer is used to resolve name conflict between local variable and member variable in C++? Explain with example.
How 'this' pointer is used to resolve name conflict between local variable and member variable in C++? Explain with example. [5]
The this pointer is an implicit pointer available inside every non-static member function of a class. It automatically holds the address of the object that called the member function. Its type is ClassName. --- A name conflict arises when a local variable (or parameter) inside a member function h...