O'Reilly logo

Visual Basic 2010 Unleashed by Alessandro Del Sole

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Overloading Methods

One of the most powerful features in the object-oriented development with the .NET Framework is the capability of overloading methods. Overloading means providing multiple signatures of the same method, in which signature is the number and types of arguments a method can receive. The following code snippet shows an example of overloading:

image

As you can see, there are four different implementations of one method named ReturnFullName. Each implementation differs from the others in that it receives a different number of arguments. The preceding example is simple, and the arguments are self-explanatory; each implementation returns ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required