Perry Smith

Java Questions & Answers

Home / Java Q & A Page 2 / Java Q & A Archive Main Page

9-28-98

Overloading operators in Java

Why is that Java does not provide for overloading of operators the way C++ does.

Overloading operators: When multiple definition exits for operators such as + or -. This is provided in C++


Response
9-29-98

it caused more trouble than it was worth when someone other than the original programmer has to modify of debug code ... hard error to spot ... so, just use method calls

MikeD


Home / Java Q & A Page 2 / Java Q & A Archive Main Page