When overloading an operator, which of the following is true?
A) One of the arguments must be an object of the class
B) The operator can be a friend or a member of the class.
C) The operator does not have to be a friend or a member of the class
D) All of the above
E) None of the above
Correct Answer:
Verified
Q25: Which of the following would be an
Q26: To overload functions with symbolic names like
Q27: Operators can be overloaded as
A) friends of
Q28: Given the following class, which is the
Q29: The assignment operator must be a _
Q31: How many parameters are there in a
Q32: How many members data and functions) does
Q33: What is wrong with the following overloaded
Q34: Since accessor functions in a class do
Q35: Write the function declaration for a destructor
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents