Softworld Interview Question

What is the difference between overriding and overloading?

Interview Answer

Anonymous

Jul 25, 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.