why to use operator overloading

Answer Posted / rekha

Operator overloading means giving additional meaning to
existing operators

Operators are defined to perform some operation on
fundamental types .Operator cannot work with user defined
types like classes and struct.so concept of operator
overloading means allows defining the meaning of operator so
that the can be used for performing operations on user defined
types.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to reverse a string using recursive function?

2051


2. Give the different notations for the class.\

1837


why reinterpret cast is considered dangerous?

2135


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3852


What does I oop mean?

857


Who invented oop?

862


write string class as your own class in java without using any built-in function

2236


What is polymorphism and types?

867


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1929


What are the types of abstraction?

793


which feature are not hold visual basic of oop?

1964


What is polymorphism and why is it important?

802


What is difference between pop and oop?

839


What is encapsulation with real life example?

802


What is purpose of inheritance?

878