Question 10
Back to Exercise
Can you write int operator+(int a, int b)?
- A Yes
- B No – at least one parameter must be a class or enumeration type Correct
- C Only inside a namespace
- D Only as a friend
Correct Answer: Option B
Otherwise you could change the meaning of built-in arithmetic.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!