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
In which way you can convert a value-type to a reference-type?
What are accessors?
What is the default value of datetime in c#?
What is window application in c#?
What is datacontract in c#?
What do you mean by object pooling?
What are the different types of assembly?
What is difference between encapsulation and abstraction in c#?
Is array a list?
What is an arraylist in c#?
Explain static class members.
What is difference between tostring() vs convert.tostring() vs (string) cast
Explain the use of SN.exe
Define the term immutable ?
I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?