Domanda di colloquio di Cognizant

What Is the Difference Between Overloading and Overriding?

Risposta di colloquio

Anonimo

28 dic 2018

When there are two methods of the same name but different properties, it is overloading. Overriding occurs when there are two methods of the same name and properties, one is in the child class and the other is in the parent class