Discuss any three rules for overloading operators in a program.
Answer:
-Only existing operators can be overloaded. New operators cannot be created.
-The overloaded operators must have at least one operand that is user-defined type.
-We cannot change the basic meaning of an operator i.e.
we cannot redefine the plus (+) operator to subtract one value from the other.
-There are some operators that cannot be overloaded.
-We cannot use friend functions to overload certain operators