2080 8

BIT153 ยท 2080 ยท 5 marks

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]

Object Oriented ProgrammingChapter 4: Pointers, References, and Memory ManagementThis pointer for name conflict resolution

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...