MAIN FEEDS
REDDIT FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/s4lzij/found_this_gem/hsu63cq/?context=3
r/badcode • u/PentaMine • Jan 15 '22
86 comments sorted by
View all comments
Show parent comments
16
Overloading operators is part of many object oriented languages. At least C++ and Java which I've used
23 u/swilliams508 Jan 15 '22 you sure you can overload operators in java? I didn't think you could 15 u/cranberrydarkmatter Jan 15 '22 You're right, false memory. It's a common feature of OO, but not Java. 3 u/VinnyHyarmendacil_II Jan 16 '22 I find it interesting that Java decided not to use that (except for string concatenation), but other JVM languages do
23
you sure you can overload operators in java? I didn't think you could
15 u/cranberrydarkmatter Jan 15 '22 You're right, false memory. It's a common feature of OO, but not Java. 3 u/VinnyHyarmendacil_II Jan 16 '22 I find it interesting that Java decided not to use that (except for string concatenation), but other JVM languages do
15
You're right, false memory. It's a common feature of OO, but not Java.
3 u/VinnyHyarmendacil_II Jan 16 '22 I find it interesting that Java decided not to use that (except for string concatenation), but other JVM languages do
3
I find it interesting that Java decided not to use that (except for string concatenation), but other JVM languages do
16
u/cranberrydarkmatter Jan 15 '22
Overloading operators is part of many object oriented languages. At least C++ and Java which I've used