0

What is the difference between “overloading” and “overridding”?

This one of my interview questions? I am expecting answers for interview not for assignment

any help?

2
Contributors
1
Reply
2
Views
12 Years
Discussion Span
Last Post by WolfPack
0

What is the difference between “overloading” and “overridding”?

“overloading” is having the functions (methods) with the same 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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.