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
What is jit (just in time)?
How do I make a dll in c#?
What is double c#?
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.
What is an assembly in .net?
What is the importance of closing an ado.net application?
How Global.asax is used ?
What is strong name in c# and how can we use it?
what are pointer types in c#
What is the difference between selection and projection?
What is gac? What are the steps to create an assembly and add it to the gac?
How do I declare inout arguments in c#?
What does dbml stand for?
How to find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?
Is unity object oriented?