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
Structs are not reference types. Can structs have constructors?
What is the use of 0 in c#?
What is a dynamic assembly?
What is the difference between finally and finalize block?
How to Show Message box in Metro Style App?
Why should I use interface in c#?
How do I port "synchronized" functions from visual j++ to c#?
What is assembly version series sequence?
How we convert private assembly into public assembly?
What is the difference between ienumerable and icollection?
What exception can an overridden method throw in comparison with the method it is overriding?
What is difference between array and list?
What is sqldataadapter in c#?
What is type safe in c#?
What do you mean by stack and heap in c#?