Is operator overloading bad?

There is nothing wrong with operator overloading . In fact, there’s something wrong with not having operator overloading for numeric types. (Take a look at some Java code that uses BigInteger and BigDecimal.) C++ has a tradition of abusing the feature, though.

Read more

Do we need operator overloading?

The purpose of operator overloading is to provide a special meaning of an operator for a user-defined data type . With the help of operator overloading, you can redefine the majority of the C++ operators. You can also use operator overloading to perform different operations using one operator.

Read more