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 dll in vb.net?
Why delegates are required?
What is difference between property and variable in c#?
Explain the difference between .net and c#?
Why do we need to override in c#?
Where do we use static class in c#?
Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?
Is c# slower than java?
Explain the process of abstraction with an example?
What is the difference between dynamic type variables and object type variables in c#?
What is Fragmentation and its Types?
What is scope c#?
What are custom exceptions?
What are the types of class in c#?
Where is c# compiler located?