employer cover photo
employer logo

Pregunta de entrevista de CSC

What is the difference between Overloading and Overriding in Java?

Respuesta de la entrevista

Anónimo

29 jul 2015

Explained that overloading is when multiple methods have the same name but different parameters; overriding is when a method in a subclass has the same name as a method in a parent class, but flow of control goes to the subclass, hence redefining (overloading) the method.