Operator Defining
Please support our Java advertiser: Programming Forums
![]() |
How do you define operators in JAVA? (Can you???)
[prettyplease] help? [/prettyplease]
[prettyplease] help? [/prettyplease]
Beware of the Rancor. I'm not kidding.
If it doesn't compile, try saying "By the power of MegaMan!!!" <this has kinda worked for me, actually...>
Scotland is NOT North Britain, Glasgow does NOT rhyme with "cow", and Robbie Burns is...well, if you don't already know who he was, you're kinda screwed.
If it doesn't compile, try saying "By the power of MegaMan!!!" <this has kinda worked for me, actually...>
Scotland is NOT North Britain, Glasgow does NOT rhyme with "cow", and Robbie Burns is...well, if you don't already know who he was, you're kinda screwed.
Okay,
thanks anyway, Ezzaral.
num_reasons_why_cpp_better_than_JAVA++;thanks anyway, Ezzaral.
Beware of the Rancor. I'm not kidding.
If it doesn't compile, try saying "By the power of MegaMan!!!" <this has kinda worked for me, actually...>
Scotland is NOT North Britain, Glasgow does NOT rhyme with "cow", and Robbie Burns is...well, if you don't already know who he was, you're kinda screwed.
If it doesn't compile, try saying "By the power of MegaMan!!!" <this has kinda worked for me, actually...>
Scotland is NOT North Britain, Glasgow does NOT rhyme with "cow", and Robbie Burns is...well, if you don't already know who he was, you're kinda screwed.
Well, you are welcome to that opinion of course, but operator overloading isn't really all that special and probably causes more confusion than it's worth. It's syntactic sugar and might save you a couple characters typing, but you can achieve the exact same functionality with methods that perform the operations and no one has to wonder what "+" or "-" does in a given context.
![]() |
Similar Threads
Other Threads in the Java Forum
- What relation does **indirection operator have with Multidimensional Arrays (C++)
- Overloading assignment operator (C++)
- Scope Resolution Operator (C++)
- Constructor and Convertion operator are the same,how to avoid memory leak? (C++)
- accessing private data members (C++)
Other Threads in the Java Forum
- Previous Thread: jar command not reccognized
- Next Thread: Java(sort/dsort)
•
•
•
•
Views: 1529 | Replies: 3 | Currently Viewing: 1 (0 members and 1 guests)






Linear Mode