What is operator overloading? Give Example
Answers were Sorted based on User's Feedback
Answer / ramkumar
when have two or more operator is called operator overloading.
E.g,. i++,a++b
Is This Answer Correct ? | 10 Yes | 36 No |
What is abstraction?
What is encapsulation selenium?
What is encapsulation oop?
what is an qt4 interface?
We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ball with only 3 possible weighing attempts?
what is different between oops and c++
What is a friend function & its advantage?
What is multilevel inheritance explain with example?
who is the father of OPPS
what is the difference between class and object?
char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output
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.