InterviewSolution
Saved Bookmarks
| 1. |
For overloading “( )”, “[ ]” or “->” operators, a class __________(a) Must use static member functions(b) Must use non-static member functions(c) Must be non-static member and should not be friend of class(d) Must use static member function or a friend member functionThis question was addressed to me during an interview.My question is based upon Member Functions in section Class Members & Types of Object Oriented Programming |
|
Answer» The correct answer is (C) MUST be non-static member and should not be FRIEND of class |
|