What is the difference between "overloading" and "overriding"?

What is the difference between "overloading" and "overriding"?

Many Diffreces are there-

Overloading a method (or function) in C++ is the ability for functions of the same name to be defined as long as these methods have different signatures (different set of parameters). Method overriding is the ability of the inherited class rewriting the virtual method of the base class.

overridding is runtime polymorphism while overloading is compile time polymorphism. 

Date:2029-12-08 00:00:00

Post Your Answers

User Email:

User Name:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher