What is operator overloading? Give Example
Answer Posted / mohd nadeem
operator overloading provides special meaning to predefined operators with respect to user defined data types like class, struct, enum.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the real time example of encapsulation?
What is object in oop?
Can we create object of abstract class?
Can private class be inherited?
What is coupling in oops?
What is a class and object?
Is data hiding and abstraction same?
What is the main purpose of inheritance law?
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.
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
Can abstract class have normal methods?
How does polymorphism work?
What is abstraction in oops?
What are oops methods?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?