Definition:Same member different arguments.
public class over
{
public over()
{
}
public void getvalue(int id, int id1)
{
HttpContext.Current.Response.Write(id);
HttpContext.Current.Response.Write(id1);
}
public void getvalue(string id, string empname)
{
HttpContext.Current.Response.Write(id);
HttpContext.Current.Response.Write(empname);
}
}
out put
over getvalue1 = new over();
getvalue1.getvalue("bala", "bala1"); //This is for string
getvalue1.getvalue(1,2); //This is for integer