Monday, April 25, 2016

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)

No comments:

Post a Comment