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
How to call a non virtual function in the derived class by using base class pointer
What is polymorphism explain?
How is polymorphism achieved?
Can we have inheritance without polymorphism?
What is encapsulation in ict?
Prepare me a program for the animation of train
What is a function in oop?
What is destructor example?
What is the full form of oops?
What are oops functions?
Why do we use polymorphism in oops?
Why is encapsulation used?
What is destructor in oop?
hi all..i want to know oops concepts clearly can any1 explain??
What is the purpose of enum?