Pergunta de entrevista da empresa SkillStorm

What is method overriding vs. method overloading?

Resposta da entrevista

Sigiloso

9 de fev. de 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