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 object and example?
What is static modifier?
What are the data types in oop?
Why do while loop is used?
What is oops?what is its use in software engineering?
What type of loop is a for loop?
class type to basic type conversion
What are functions in oop?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is encapsulation process?
What is inheritance in simple words?
What is a function in oop?
What is destructor in oop?
What is destructor give example?
Get me a number puzzle game-program