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
Can comments be nested?
What are arithmetic operators?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
How can you quickly find the number of elements stored in a static array?
What data encapsulation is in c++?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
Explain all the C++ concepts using examples.
what are the characteristics of Class Members in C++?
Which one is a preferred language C or C++? Why?
What is the difference between struct and class?
Comment on assignment operator in c++.
What do you mean by global variables?
Why do we need function?
Why is c++ still popular?
How do you write a function that can reverse a linked-list?