Nokia interview question

what is method overloading and overriding

Interview Answer

Anonymous

Sep 8, 2023

Method overloading is a feature in object-oriented programming languages like Java that allows us to define multiple methods with the same name in a class. These methods have different parameter lists, meaning they take a different number or type of parameters. The compiler differentiates between these methods based on the method's signature, which includes the method name and its parameter list.