0
what is difference between overloading and overriding ?
2 Answers
+ 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
+ 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.