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;
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;
Answer your own homework question!
Not to mention the fact that C doesn't have classes.
Quzah.
Wrong forum, and blatently disreguarding the forum's guidelines on doing your own homework. If you have a question, be more specific and repost it with the code you've done so far on teh C++ forum.
Closed.