Difference between Overloading and Overriding?

Answer Posted / shivanand

The main difference between overloading and overriding is
that in overloading we can use same function name with
different parameters for multiple times for different tasks
with on a class.
and overriding means we can use same name fiunction name
with same parameters of the base class in the derived class.
this is also called as reusability of code in the programme.

Is This Answer Correct ?    312 Yes 67 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How did c++ start?

587


When is the destructor called?

583


How can I disable the "echo" feature?

584


What is a unnitialised pointer?

508


Why the usage of pointers in C++ is not recommended ?

871






What is dev c++ used for?

576


Write a recursive program to calculate factorial in c++.

584


What is a container class?

594


What is std :: flush?

552


What are advantages of c++?

529


Why do we use setw in c++?

618


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

567


Describe friend function & its advantages.

680


Distinguish between new and malloc and delete and free().

551


What do you mean by delegate? Can a user retain delegates?

504