write a short note on Overloading of Binary Operator?
Answer Posted / saranya
In overloading binary operators the object to the left of the operator is used to invoke the operator function while the operand to the right of the operator is always passed as an argument to the function.
eg) sum.x = x + real.x
here x is used to invoke the function +() and real.x is passed as argument to that function.
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
What is data binding in oops?
Is html an oop?
How to hide the base class functionality in Inheritance?
What is a class oop?
What are the types of abstraction?
What are benefits of oop?
What is debug class?what is trace class? What differences are between them? With examples.
What is super in oop?
What is the diamond problem in inheritance?
What is abstraction in oops?
What is interface? When and where is it used?
What are the 3 pillars of oop?
What is constructor in oop?
any one please tell me the purpose of operator overloading
What is balance factor?