Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
What is overloading? I know about method overloading and operator overloading but I want to know the proper definition of overloading.
Posted
Updated 3-Nov-11 22:38pm
v2
Comments
Prerak Patel 4-Nov-11 4:37am    
Google it.

Overloading is "a type of polymorphism where different functions with the same name are invoked based on the data types of the parameters passed" according to Wiki, and that is about right.

Basically, overloading is just having multiple methods with the same name and purpose, that can be told apart by having a different number, or type, or order of parameters - this is called a signature.
 
Share this answer
 
Comments
lukeer 4-Nov-11 5:14am    
Very nice explanation.
Start here[^].
 
Share this answer
 
Google is your best friend. See, for instance: Overloading - Definition[^].
 
Share this answer
 
Operator Overloading :-


Define that one operator can be used to perform two different action eg

"+" can be used to adding two or more numbers
and it can also be used to concatenate two or more more than two string,

it's called operator overloading.


Function Overloading :-

function have same name for different purpose.
 
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