What is operator overloading? Give Example

Answer Posted / msn

Making an operator doing different operation other than
the normal one is termed as operator overloading..

Say for example Operator + is normally used to add numbers
but we can add another function concatenate two strings

Is This Answer Correct ?    9 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?

1786


What is object in oop?

671


What is overloading in oops?

591


What is polymorphism oop?

614


What are constructors in oop?

583






What do you mean by overloading?

574


Can we have inheritance without polymorphism?

604


Why do we use encapsulation in oops?

514


What is class and object with example?

581


What is the difference between static polymorphism and dynamic polymorphism?

573


What is oops and why we use oops?

569


What is destructor in oop?

617


What is polymorphism and types?

594


What is the use of oops?

614


What is polymorphism what are the different types of polymorphism?

553