The general syntax for the function prototype to overload the assignment operator = for a class is ____.
A) friend className& operator=(const className&) ;
B) className& operator=(className&) ;
C) string className& operator=(className&) ;
D) const className& operator=(const className&) ;
Correct Answer:
Verified
Q29: Which of the following is a built-in
Q30: Suppose cType is a class template, and
Q31: The return type of the function to
Q32: Which of the following is the general
Q33: To overload the pre-increment (++) operator as
Q35: Which of the following is the syntax
Q36: Which of the following is the general
Q37: Any function that overloads an operator is
Q38: If you overload the binary arithmetic operator
Q39: The operators that cannot be overloaded are
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