OJAS Softech interview question

Difference between overloading and overriding. They asked some questions from String Handling.

Interview Answer

Anonymous

Oct 4, 2017

Method Overloading is like having two or more methods with same name , different parameters in same class . while, Method overriding is like inheriting methods from super class and parameters , returns types of methods in super and base class should be same.