Which of the following is true about the overloading of ‘+’ and ‘-‘ operators?
A. They can be defined as binary operators only
B. They can be defined as unary operators only
C. They can be defined as ternary operators only
D. They can be defined as either binary or unary operators
Answer:D
Which of the following is true about the overloading of ‘+’ and ‘-‘ operators?
A. They can be defined as binary operators only B. They can be defined as unary operators only C. They can be defined as ternary operators only D. They can be defined as either binary or unary operators