How to declare operator function?

How to declare operator function?
A. operator sign
B. operator
C. name of the operator
D. name of the class
 
Answer: a
Explanation: We have to declare the operator function by using the operator, operator sign. Example “operator +” where the operator is a keyword and + is the symbol need to be overloaded.
 

Tìm kiếm

Back
Top