What is operator overloading? Give Example
Answer Posted / riya piyush jain
Operator overloading (less commonly known as operator ad-
hoc polymorphism) is a specific case of polymorphism in
which some or all of operators like +, =, or == have
different implementations depending on the types of their
arguments. Sometimes the overloadings are defined by the
language; sometimes the programmer can implement support
for new types.
| Is This Answer Correct ? | 23 Yes | 1 No |
Post New Answer View All Answers
What is inheritance in oop?
What is difference between multiple inheritance and multilevel inheritance?
Write a program to reverse a string using recursive function?
what are the different types of qualifier in java?
What is polymorphism oop?
What is encapsulation with real life example?
What are the 3 pillars of oop?
What is the importance of oop?
What is abstraction and encapsulation?
any one please tell me the purpose of operator overloading
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is abstraction example?
What is this pointer in oop?
What is encapsulation with example?
what is the drawback of classical methods in oops?