InterviewSolution
Saved Bookmarks
| 1. |
Which among the following are valid ways of overloading the operators?(a) Only using friend function(b) Only using member function(c) Either member functions or friend functions can be used(d) Operators can’t be overloadedThe question was posed to me during an interview for a job.This interesting question is from Member Operator Function in division Member Functions & its Types of Object Oriented Programming |
|
Answer» Correct choice is (c) EITHER member functions or friend functions can be USED |
|