What is Method Overloading?

Method overloading is a process whereby methods by the same name are declared more than once but with a different signature, it can either be the number of parameters or the type of the parameters. This is provided to overcome the optional parameter options that is there in VB.NET.

For e.g.

public void methodOverloading (int arg1, int agr2)

public void methodOverloading (int arg1, string arg2)

public void methodOverloading (int arg1, int agr2, string arg3)

Comments

Popular posts from this blog

What is the difference between a Page Layout and Master Page in SharePoint?

Accessing data from SharePoint 2010 to an ASP.NET application

What is the difference between DDL, DML and DCL?