Answer Posted / rakesh
A class contains more than one function with the same name
but different method signature ie different access
type,return type,parameters.
public void int sum(int i,int j)
{
int tot=i+j;
Console.WriteLine(tot);
}
public void double sum(double p,double q)
{
double tot=p+q;
Console.WriteLine(tot);
}
if we are passing integer values means the first function
will invoke,and if we are passing double values means the
second will work.This is method overloading.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is use of FormBoarderStyle Propertie
Is boxing an implicit conversion?
What is linq c#?
What is part of a method signature in c#?
if a method is marked as protected internal who can access it?
What is class sortedlist underneath?
What is the difference between finalize() and dispose()?
What is cls, cts and clr in net?
What does args mean in c#?
Is datetime value type c#?
What are the differences between system.string and system.text.stringbuilder classes?
Can constructor be overloaded in c#?
What is the difference between an implicit conversion and an explicit conversion?
Explain the security with aop?
What is a console file?