You overload an operator by naming it a
A. | variable |
B. | built-in type |
C. | function |
D. | class |
Option: C Explanation : Click on Discuss to view users comments. |
A. | !a |
B. | b! |
C. | a!b |
D. | All of these |
Option: A Explanation : Click on Discuss to view users comments. |
A. | void |
B. | a copy of the values passed to them |
C. | an object of the class type |
D. | address of the function |
Option: C Explanation : Click on Discuss to view users comments. |
A. | Number operator-(const Number & num) |
B. | Number & operator-(int num) |
C. | int Number (operator-()) |
D. | void operator-(Number & num) |
Option: A Explanation : Click on Discuss to view users comments. |