What is the essence of operator overloading? | SoloLearn: Learn to code for FREE!

+5

What is the essence of operator overloading?

Operation overloading appears to be a little complicated. Can someone please help tell me it's essence.... Or help make it simple to comprehend.

4/7/2018 2:00:12 PM

Abraham N. Mulbah

1 Answer

New Answer

+1

sometimes it can make your code easier to read/write or shorter when you for example create class Fraction, you might like to do frac1+frac2, rather than frac1.add(frac2)