Domanda di colloquio di CloudThat

Explain Method Overloading and Method Overriding

Risposta di colloquio

Anonimo

30 dic 2024

Method overloading Involves creating multiple methods with the same name but different parameters within the same class. Method overriding Involves creating a method in the child class with the same name, parameters, and return type as in the parent class.