Difference between Overloading and Overriding?

Answer Posted / ravi kolate(ty)

overloadind is the method in which have same function name
and return type but it has different number of passing
argument.
float a(float a,int a)
{
float a(float num)
{
//code
}
}
while in overriding method their are same function name
same return type and same parameter passing passing to
parent class to child class.
in java their is tedius problems in method overriding ,to
solve problem java introduce a interface.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the disadvantage of using a macro?

589


What is ios flag in c++?

678


How to get the current position of the file pointer?

554


What is encapsulation in c++ with example?

584


What is the use of endl in c++?

591






What does the linker do?

591


Explain how to initialize a const member data.

598


Describe new operator?

620


What is time_t c++?

606


What is the use of seekg in c++?

596


What are the effects after calling the delete this operator ?

555


What is a buffer c++?

582


What is a pdb file?

535


What do you mean by storage classes?

790


What is c++ programming language?

576