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

Which language is not a true object oriented programming language?

634


What does and I oop and sksksk mean?

644


What does <> mean pseudocode?

618


What is the difference between procedural programming and oops?

546


What is the difference between static polymorphism and dynamic polymorphism?

573






Which is not an object oriented programming language?

530


How to hide the base class functionality in Inheritance?

630


write a programe to calculate the simple intrest and compund intrest using by function overlading

1659


What causes polymorphism?

563


What are the 3 principles of oop?

608


what are the realtime excercises in C++?

2328


Why is there no multiple inheritance?

562


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2025


write a C++ program for booking using constructor and destructor.

2040


Are polymorphisms mutations?

691