Question d’entretien chez SkillStorm

What is method overriding vs. method overloading?

Réponse à la question d'entretien

Utilisateur anonyme

9 févr. 2024

method overriding is when a subclass has a method with the same signature as a method in its parent class (Dog speak() overrides Animal speak()) method overloading is when methods have the same name, so you differentiate based on the differing parameters.

1