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's the difference between class and object?
How do I create a dbml file?
Can we create extension method for interface?
How the versioning applies to Assemblies or can you explain version numbers?
How does dependency injection work c#?
Can an exception be thrown from a catch block?
Can we inherit sealed class in c#?
What do you mean by abstract class in c#?
What is the purpose of namespace?
What are the advantages of using assemble language programming?
What is difference between int and int in c#?
Why do we Need of static class in c#?
Explain the OOPS concept in C#?
What are the variables in c#?
What is the use of delegate?