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 polymorphism explain?
What are the benefits of oop?
What is property in oops?
What is oops and why we use oops?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is and I oop mean?
What polymorphism means?
What are different oops concepts?
what type of question are asked in thoughtworks pair programming round ?
What is object and class in oops?
What is protected in oop?
Why multiple inheritance is not allowed?
What is oops with example?
what is difference between class template and template class?
What is encapsulation in oops?