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 the difference between a mixin and inheritance?
How can you overcome the diamond problem in inheritance?
What is difference between inheritance and polymorphism?
What are the 4 pillars of oop?
What is basic concept of oop?
What is pure oop?
Why is polymorphism important in oop?
when to use 'mutable' keyword and when to use 'const cast' in c++
what are the different types of qualifier in java?
Advantage and disadvantage of routing in telecom sector
what type of question are asked in thoughtworks pair programming round ?
Why interface is used?
What are properties in oop?
What are the 3 pillars of oop?
Why is polymorphism used?