101k views
2 votes
What do you understand by ‘operator overloading’? How does an operator

overloading feature can negatively affect a programming language despite its

obvious usefulness?

User Norse
by
8.2k points

1 Answer

3 votes

Answer: Operator overloading is used for the user-defined field for expression definition of objects , structures etc in programming. It does not work in built in data types field such as char, float etc.

Example- +,=,[] etc

This feature can be put a negative impact in programming field by operators ,as "+" operator is used for the summing up the integers but in the case of characters , this operator will creates a link in series between them.This acts as drawback for operator overloading.

User Shongsu
by
8.2k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.