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 the use of delegates in c#?
What is null propagation c#?
Why do we write system in c#?
Do while loops yes or no c#?
What debugging tools come with the .NET ssSDK?
What is the meaning of MSIL?
Can you have parameters for static constructors?
What is a generic in c#?
Is c# used for frontend or backend?
Can you see a loop recorder?
Define delay signing?
Does c# support #define for defining global constants?
Explain the difference between passing parameters by value and passing parameters by reference with an example?
What is serialization and deserialization in c# with example?
Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?