Difference between over loading and over ridding?
Answer Posted / rameshwar gaikwad
Difference
Method OverLoading
1. Same method name with different number of argument
2. Number of argument with different datatype
3. Each method may returns different type of value
4. All overloaded methods founds to be in one class.
Method OverRiding
1. Same method name with same number of argument
2. Number of argument with same datatype
3. Each method must returns same type of value
4. Each overrided method of base class founds in respective
derived class.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is abstraction and encapsulation?
What is polymorphism oop?
Can private class be inherited?
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.
How do you define social class?
What is class in oop with example?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Why do we use oop?
What is for loop and its syntax?
What is ambiguity in inheritance?
Why do we use polymorphism in oops?
What is interface? When and where is it used?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is polymorphism used for?
What is use of overloading?