Consider any two classes A and B. Add prototypes for suitable member functions to these classes in order to facilitate expressions as below. Discuss the mechanism that compiler will use to resolve the function calls.

a=a + b;
b=a+20;