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 does I oop mean?
What is purpose of inheritance?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
Is abstract thinking intelligence?
What are properties in oop?
Can we have inheritance without polymorphism?
What exactly is polymorphism?
any one please tell me the purpose of operator overloading
What is the point of oop?
What is the difference between a constructor and a destructor?
What is the purpose of polymorphism?
Can main method override?
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 constructor in oop?
hi all..i want to know oops concepts clearly can any1 explain??