Google News
logo
CPP - Quiz(MCQ)
What is operator overloading in C++?
A)
Redefining the way operator works for user defined types
B)
Ability to provide the operators with some special meaning for user defined data type
C)
Overriding the operator meaning by the user defined meaning for user defined data type
D)
All of the above

Correct Answer :   All of the above


Explanation : Operator overloading is a compile-time polymorphism in which the operator is overloaded to provide the special meaning to the user-defined data type. Operator overloading is used to overload or redefines most of the operators available in C++. It is used to perform the operation on the user-defined data type.

Advertisement