What is operator overloading? Give Example
Answer Posted / xxxx
A single operator is used to perform diff fuction in a
program is known as operator overloading..
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 ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is encapsulation in simple terms?
What does and I oop and sksksk mean?
Why do we use polymorphism?
Why is polymorphism important in oop?
write a program that takes input in digits and display the result in words from 1 to 1000
What is object and class in oops?
What are benefits of oop?
What is abstract class in oops?
Which is not an object oriented programming language?
Is react oop?
What is class encapsulation?
What are the advantages of polymorphism?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What does and I oop mean?
What is abstraction encapsulation?