954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

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?

jitterson
Newbie Poster
24 posts since Jun 2006
Reputation Points: 10
Solved Threads: 1
 
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
Moderator
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You