Operator Overloading Quiz
Below are the answers to the Operator Overloading Quiz, along with a brief discussion.
1. True.
2. False. You can only overload (some of) the build-in operators. You cannot define your own new operator.
3. False. Not all operators can be overloaded. Some operators would be too dangerous to allow overloading for, like the assignment operator (=
).
4. True.
5. True.