O'Reilly logo

Start Here!™ Fundamentals of Microsoft® .NET Programming by Rod Stephens

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

Operator Overloading

Modern programming languages such as Visual Basic and C# allow a program to overload routines by creating multiple routines with the same name but different signatures. A routine’s signature includes its parameters and their data types. (Parameters are values that you pass to a routine to give it information. For example, you might pass to the PrintInvoice routine the name of the customer whose invoice the routine should print. Chapter 9, covers routines and their parameters in detail.)

For example, a program could create multiple versions of the PrintInvoice routine so long as no two versions took exactly the same types of parameters. Three different versions might take as parameters a customer ID (an integer), a customer ...

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