Cognizant Interview Question

What Is the Difference Between Overloading and Overriding?

Interview Answer

Anonymous

Dec 28, 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