employer cover photo
employer logo
employer logo

SBB Research Group

Is this your company?

SBB Research Group Interview Question

What is the difference between 'Overload' and 'Override'?

Interview Answer

Anonymous

Feb 27, 2019

Overload - occurs when two or more methods in one class have the same method name but different parameters. Override - means having two methods with the same method name and parameters (i.e., method signature). One of the methods is in the parent class and the other is in the child class. Overriding allows a child class to provide a specific implementation of a method that is already provided its parent class.