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

When there is a global variable and local variable with the same name, how will you access the global variable?

614


What is an incomplete type in c++?

762


What is data abstraction? How is it different from data encapsulation?

526


Can non graphic characters be used and processed in C++?

697


What are arrays c++?

600






Why is c++ not purely object oriented?

559


What are structs in c++?

596


Write about the access privileges in c++ and also mention about its default access level?

612


What is the benefit of c++?

589


Explain differences between new() and delete()?

612


Why should we use null or zero in a program?

596


Is c++ a good first language to learn?

571


Do class method definitions?

581


Why is c++ difficult?

596


What is c++ try block?

572