What is operator overloading? Give Example
Answer Posted / palsaniya sadikhasan, meta.
Operator overloading is an operator that perform different
task based on given arguments.
e.g. suppose '+' is an operator is used to add two number
and if we use '+' with two strings then operator '+' can
concate two string is known as operator overloading.
or
operator overloading means one operator can perform multiple
operation based on given arguments.
Is This Answer Correct ? | 39 Yes | 2 No |
Post New Answer View All Answers
What is polymorphism in oops with example?
What is coupling in oop?
What is polymorphism and types?
What is the difference between a constructor and a destructor?
What is polymorphism and example?
Can enum be null?
What are the two different types of polymorphism?
How can you overcome the diamond problem in inheritance?
What is overloading and its types?
When not to use object oriented programming?
What is the significance of classes in oop?
What is overloading in oops?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is this pointer in oop?
What is inheritance write a program to show use of inheritance?