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
What are stacks?
What are the various storage classes in C++?
What are the types of array in c++?
Write a program to add three numbers in C++ utilizing classes.
What is friend class in c++ with example?
List the merits and demerits of declaring a nested class in C++?
Which one is better- macro or function?
What are static variables?
Explain object slicing in c++?
What are the 2 main types of data structures?
What is a multiset c++?
What is isdigit c++?
How to declare an array of pointers to integer?
What is capacity in vector in c++?
Write a program which uses Command Line Arguments