The same overloaded operator allows you to construct objects of class A, B, and C in shared memory.
同一个重载的操作符让您可以在共享内存中构造类A、B和C 的对象。
This rule enforces the requirement that an overloaded operator may not redefine the meaning of the operators when applied to objects of built-in type.
这条规则强制重载操作符不能重新定义用于内置类型对象的操作符的含义。
You may have noticed that the + operator in Groovy is already overloaded in a few different areas, especially when it comes to collections.
您可能已经注意到Groovy中的+操作符已经在几个不同的领域重载了,特别是在用于集合的时候。
The assignment operator cannot be overloaded.
不能重载赋值运算符。
When a binary operator is overloaded, the corresponding assignment operator, if any, is also implicitly overloaded.
重载二元运算符时,也会隐式重载相应的赋值运算符(如果有)。
You cannot use the default equality operator in an overloaded implementation of the equality operator.
不能在相等运算符的重载实现中使用默认相等运算符。
You cannot use the default equality operator in an overloaded implementation of the equality operator.
不能在相等运算符的重载实现中使用默认相等运算符。
应用推荐