LTIMindtree interview question

What is the difference between method overloading and method overriding?

Interview Answer

Anonymous

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.