0

Can we override the overloaded method?

non static method

16th May 2017, 11:02 AM
Kushi Kurdi
Kushi Kurdi - avatar
2 Réponses
+ 1
Yes you can override the overloaded method. Overloading is when you define two methods with same name, in the same class, distinguished by their signatures. Overriding is when you redefine a method that has already been defined in a parent class(using the exact same signature) Overload is resolved at compile time. Overriding is resolved at runtime
16th May 2017, 11:23 AM
Housam Abbas
Housam Abbas - avatar
+ 1
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, 3:10 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar