What is the difference between “overloading” and “overridding”?
“overloading” is having the functions (methods) with thesame name but different signatures. You can find overloading in non object oriented languages like C too. Overloading acts on different data types in different ways.
“overriding” is having a methods with same name and same signature in a parent class and the child class. You cant find overloading in non-object oriented languages like C, because they dont have a class concept. Overriding acts on different object types in different ways.
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115