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
How did c++ start?
When is the destructor called?
How can I disable the "echo" feature?
What is a unnitialised pointer?
Why the usage of pointers in C++ is not recommended ?
What is dev c++ used for?
Write a recursive program to calculate factorial in c++.
What is a container class?
What is std :: flush?
What are advantages of c++?
Why do we use setw in c++?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
Describe friend function & its advantages.
Distinguish between new and malloc and delete and free().
What do you mean by delegate? Can a user retain delegates?