0 votes
in C Plus Plus by

What are the benefits of Operator Overloading?

1 Answer

0 votes
by

By overloading standard operators on a class, we can extend the meaning of these operators, so that they can also operate on the other user-defined objects.

Function overloading allows us to reduce the complexity of the code and make it more clear and readable as we can have the same function names with different argument lists.

Related questions

+2 votes
asked Jun 19, 2019 in C Plus Plus by anonymous
+1 vote
asked Sep 12, 2022 in Scala Constructs by Robin
0 votes
asked Jan 9 in C Plus Plus by GeorgeBell
...