SLIDE 1
Duke CPS 108
- 4. 1
Overloading operators
- Why overload operators? (==, =, <, >>, +=, …)
➤ notational convenience ➤ match user expectations ➤ because we can (except :: and . and .*)
- Remember, overloaded operators are just function calls