Domanda di colloquio di LTIMindtree

What is the difference between method overloading and method overriding?

Risposta di colloquio

Anonimo

19 mar 2025

Method Overloading: Defining multiple methods with the same name but different parameters in the same class. It is resolved at compile-time. Method Overriding: Redefining a method in a subclass that already exists in the parent class, enabling runtime polymorphism.