Question d’entretien chez Cisco

What is the difference between function overloading and function overriding?

Réponse à la question d'entretien

Utilisateur anonyme

24 juill. 2018

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.