10.1什么是运算符重载 Operator Overloading Operator overloading allows the programmer to define versions of the predefined operators for operands of class type. Operator overloading is just "syntactic sugar,"which means it is simply another way for you to make a function call. The difference is that the arguments for this function don't appear inside parentheses,but instead they surround or are next to characters you've always thought of as immutable operators. 2017年4月26日12时 第10章运算符重载 3 BACK NEXHOME • Operator overloading allows the programmer to define versions of the predefined operators for operands of class type. • Operator overloading is just “syntactic sugar, ” which means it is simply another way for you to make a function call. • The difference is that the arguments for this function don’t appear inside parentheses, but instead they surround or are next to characters you’ve always thought of as immutable operators. 2017年4月26日12时 15分 第10章 运算符重载 3