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 difference between polymorphism and inheritance?
What are classes oop?
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 abstraction with example?
What is a null tree?
Why is polymorphism important in oop?
What is the point of oop?
What language is oop?
What is this pointer in oop?
What is class and object with example?
Write a program to reverse a string using recursive function?
What is inheritance in oop?
What is polymorphism what is it for and how is it used?
to find out the minimum of two integer number of two different classes using friend function
What is polymorphism and why is it important?