InterviewSolution
Saved Bookmarks
| 1. |
Which of the following operator cannot be used to overload when that function is declared as friend function?(a) -=(b) ||(c) ==(d) []This question was posed to me during an interview.This key question is from Operator Overloading in chapter Source Files, Classes and Operator Overloading in C++ of C++ |
|
Answer» CORRECT choice is (d) [] For explanation: When an OPERATOR overlaoded function is DECLARED as friend function then [] cannot be OVERLOADED. |
|