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
Why multiple inheritance is not possible?
How Do you Code Composition and Aggregation in C++ ?
What is polymorphism used for?
What are the three parts of a simple empty class?
What is encapsulation in ict?
What is the renewal class?
What is oops in simple words?
How do you achieve runtime polymorphism?
What is difference between inheritance and polymorphism?
class type to basic type conversion
Why oops is important?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What is inheritance and how many types of inheritance?
State what is encapsulation and friend function?
Explain the concepts involved in Object Oriented programming.