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
Is c# int immutable?
Name some properties of thread class.
What is a hashset c#?
What is the use of delegate?
Can main method be final?
When should you use generics?
What is a framework in c#?
What is linq c#?
Is an interface a type c#?
What are Namespaces?
What is .cshtml file?
What is a hash table c#?
What is the purpose of reserved word using in c#?
Is arraylist thread safe?
In a site to turn off cookies for one page which method is followed?