OVERLOADING VS OVERRIDING. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

OVERLOADING VS OVERRIDING.

Question says it All.

7th Mar 2017, 9:39 AM
Meharban Singh
Meharban Singh - avatar
2 Answers
+ 2
Got it, Overloading occurs when two or more methods in one class have the same method name but different parameters. Overriding means having two methods with the same method name and parameters (i.e., method signature). One of the methods is in the parent class and the other is in the child class. Source :- Google
7th Mar 2017, 9:54 AM
Meharban Singh
Meharban Singh - avatar
0
here is an example that you may want to check to see difference or understand the meanings of overriding and overloading https://code.sololearn.com/c0awDMpDLukF/?ref=app
11th Sep 2017, 2:51 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar