0
What's the Difference between Overloading and Overriding ??
4 Answers
+ 5
@Ahmed
Careful,
Overloading doesn't have to deal with the same class, it can be different classes.
For example, if a super class has a method with the same name as the sub class. (With different signature).
More info:
https://stackoverflow.com/questions/24884151/can-a-method-in-sub-class-overloading-a-method-in-super-class
+ 3
Overloading deals with two or more methods in the same class with the same name but different arguments.
Overriding means, two methods with the same arguments, but different class
+ 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