SkillStorm interview question

What is method overriding vs. method overloading?

Interview Answer

Anonymous

Feb 9, 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