Domanda di colloquio di Softworld

What is the difference between overriding and overloading?

Risposta di colloquio

Anonimo

25 lug 2019

Overriding means one or two methods having a same name and same parameters. One method is in the parent class and other method is in the child class. Overloading occurs when two or more methods in one class have the same method name but different parameters.