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


Please Help Members By Posting Answers For Below Questions

What does I oop mean?

835


What is purpose of inheritance?

847


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...

1831


Is abstract thinking intelligence?

794


What are properties in oop?

808


Can we have inheritance without polymorphism?

790


What exactly is polymorphism?

860


any one please tell me the purpose of operator overloading

2165


What is the point of oop?

859


What is the difference between a constructor and a destructor?

847


What is the purpose of polymorphism?

872


Can main method override?

834


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.

952


What is constructor in oop?

816


hi all..i want to know oops concepts clearly can any1 explain??

1890