Difference between Overloading and Overriding?
Answer Posted / pratimakiran
Overloading doesn't block Inheritence from the
superclass where as Overriding blocks is Inheritence.
Overloading method has different Parameters but same name
whereas Overriding is just the implementation of method
define Base Class.
Overloading Two or more functions having same name but
different methods i.e arguements or return types.
Overriding means use same name function name
with same parameters of the base class in the derived class.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
Explain static and dynamic memory allocation with an example each.
What is the maximum combined length of command line arguments including the space between adjacent arguments?
What is a .lib file in c++?
What are the benefits of pointers?
Is c++ a good beginners programming language?
Why ctype h is used in c++?
Explain 'this' pointer and what would happen if a pointer is deleted twice?
What is virtual destructor? What is its use?
Which software is best for coding?
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?
How compile and run c++ program in turbo c++?
What is the best c++ book?
What is the difference between map and hashmap in c++?
What is #include math h in c++?
How do you clear a set in c++?