What is the difference between the memory allocation of the data members of an object of a class and its functions?
How does the function know which object of the class it has to act on?
• The address of the calling object is passed as a hidden argument to the function
The address is stored in the variable called this pointer
Which has more precedence: dot operator or indirection operator?
Dot operator
2 cases in which this pointer may be required explicitly
When local variable and data member have same name
To return reference to calling object