What is overloading and how can this be done ?

Answer Posted / mahesh babu ummaneni

overloading is nothing but method name is same but perameters is different.
for example
class overloading
{
public void add(int x)
{
console.writeline("sum");
}
public void add(int x,int y)
{
console.writeline("THE SUM IS:"+(x+y));
}
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jit (just in time)?

542


How do I make a dll in c#?

496


What is double c#?

522


Hi to all..I have to create an intranet application on C#.NET windows Application so please please let can you people help me as iam new in .NET and if u have any samples or website address from where i can get sample please let know.

3794


What is an assembly in .net?

570






What is the importance of closing an ado.net application?

473


How Global.asax is used ?

604


What is strong name in c# and how can we use it?

526


what are pointer types in c#

543


What is the difference between selection and projection?

427


What is gac? What are the steps to create an assembly and add it to the gac?

475


How do I declare inout arguments in c#?

529


What does dbml stand for?

542


How to find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?

524


Is unity object oriented?

482