C++ Programming Question: Download C++ Programming PDF

In C++, what is the difference between method overloading and method overriding?

Tweet Share WhatsApp

Answer:

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.

Download C++ Programming PDF Read All 120 C++ Programming Questions
Previous QuestionNext Question
What is the difference between Mutex and Binary semaphore?What methods can be overridden in Java?