O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

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, Constructors, and Properties

If you’re a seasoned Visual Basic 6.0 developer, you probably know the advantage of having your language support optional parameters. At first glance, overloading functions in .NET seems similar, but it’s actually a completely different concept. What both concepts have in common is that they permit a liberal passing of parameters to functions. But that’s where the commonalities end.

By overloading functions you can give your classes an enormous amount of flexibility and adaptability. Overloading functions means that you create different functions with the same name, but which differ only by the type, the order, or the number of parameters that are passed to it. Take a look at the following code ...

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