User Id :    Password :      New Member   Forgot Password  
Topic: What is overloading
Sachin Jain
12 Jan 2012 at 10:03 AM

What is overloading?

Re: What is overloading
Gaurav
15 Jan 2012 at 10:22 AM

Two methods with the same name but with different parameters. E.g.

public class AddingNumbers
{
    public int Add(int a, int b)
    {
        return a+b;
    }

    public int Add(int a, int b, int c)
    {
        return a+b+c;
    }
     
}

 

Total Replies: 1
 
Featured Text Ad

Featured Ad