0

what is difference between overloading and overriding ?

16th Sep 2016, 4:28 PM
Zeeshan Saeed
Zeeshan Saeed - avatar
2 Respostas
+ 3
here is an example in java but 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, 3:13 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 1
Overloading: you define several methods with the same name but different parameters. Overriding: you define in a derived class a method with the same name, return value, and parameters as an inherited method. It replaces the inherited method for that derived class.
16th Sep 2016, 9:00 PM
Zen
Zen - avatar