Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to all,
just i want to know
1>What is the differene between function overloading and function overriding
2> what is polymorphism
Posted
Updated 27-Jun-16 1:35am
Comments
BobJanova 31-Jul-12 6:40am    
This seems like a homework question ...

The difference between function overloading and function overriding is:

Overloding is when you have several functions with the same name, but that it can take several different inputs:
http://en.wikipedia.org/wiki/Function_overloading[^]

Overrides replaces an existing function and happens in inheriting a base class:
http://en.wikipedia.org/wiki/Method_overriding[^]

Polymorphism[^]
 
Share this answer
 
Function overloading is having a set of functions with the same name but different parameters. (Technically in .NET but not C# return type counts also). Overriding is having a function in a child class that overrides one in a parent class.

Polymorphism needs more of a discussion but had been a major thing in software development for at least the last twenty years. As suggested - use Google.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900