Summary


Operator overloading is a pretty neat feature, but you don't really need it. Anything you can do by overloading the addition operator, you can also do by adding an Append method to a class. But operator overloading does allow you to bring your classes more into the mainstream of Visual Basic syntax usage.

When you do overload your operators, make sure you include sufficient documentation or comments to make it clear what it means to left-shift a customer, or multiply a bank account. Hey, I'd like to know about that last one.




Start-to-Finish Visual Basic 2005. Learn Visual Basic 2005 as You Design and Develop a Complete Application
Start-to-Finish Visual Basic 2005: Learn Visual Basic 2005 as You Design and Develop a Complete Application
ISBN: 0321398009
EAN: 2147483647
Year: 2006
Pages: 247
Authors: Tim Patrick

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net