fred rosenberger wrote:In C++, you could overload any operator you wanted. You could define the '+' symbol to add two widgets together, and then write whatever made sense for that class.
It got a little crazy.
In Java it's controversial. One side argues that general operator overloading should be introduced. Then the programmer would decide what to overload, like in C++ and C#. The other side argues it's better to have fixed overloading and introduce new overloadings on a need to have basis. It seems the latter is in majority.