Multiple Choice
The general syntax 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
Correct Answer:
Verified
Related Questions
Q7: In C++, >> is used as a
Q9: Which of the following is the syntax
Q9: To overload the pre-increment (++) operator for
Q11: A class template is called a(n)_ type
Q16: Which of the following is the general
Q17: The function that overloads the _ operator
Q24: Suppose cType is a class template, and
Q25: Operator functions typically return void.
Q29: Any function that overloads an operator is
Q34: The return type of the function operator