0

What is the difference between overloading and overriding ?

21st Jun 2017, 9:15 AM
deepanshu samdani
deepanshu samdani - avatar
3 Answers
+ 6
Overloading is changing the behavior of a method depending on type of argument it gets. Overriding is changing the behavior of a method inherited by a class from its parent inside this class.
21st Jun 2017, 10:13 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 1
overloading means describe new working of function that is user defined or developer defined. overriding means that if a child class inherit from a parent class if child class uses a function with same name and parameters as parent class than its called overriding.
21st Jun 2017, 4:59 PM
Rohan Vijayvergiya
Rohan Vijayvergiya - 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