Pregunta de entrevista de Tata Consultancy Services (North America)

Explain method overriding vs method overloading

Respuesta de la entrevista

Anónimo

26 ago 2020

Overriding is when a child class has the same method name as the parent but implements different functionality. Overloading is when a class has two methods with the same name but that take different arguments.