[Previous] [Contents] [Next]

Overloadable Operators

Only the following unary and binary operators can be overloaded.

Unary operands: +, -, !, ~, ++, --, true, false -

Binary operands: +, -, *, /, %, &, |, ^, <<, >>, ==, !=, >, <, >=, <= -

NOTE
The comma is used here to separate the different overloadable operators. The comma operator, which is used in the for statement and in method calls, cannot be overloaded.

[Previous] [Contents] [Next]