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!
Free code: http://sol-biotech.com/code/.
It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
--Me, I just made it up
The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
--George Bernard Shaw
Not to mention the fact that C doesn't have classes.
Quzah.
Hope is the first step on the road to disappointment.
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.