Murach's Visual Basic 2008
How to work with default properties, events, and operators

Chapter 11 covers the skills that you need whenever you create a Visual Basic class. Now, this chapter shows you advanced techniques that allow you to develop more complex classes, like how to create default properties, throw argument exceptions, raise events, and overload operators.

Chapter 17 How to work with default properties, events, and operators
An introduction to the ProductList class 546
The code for a simple ProductList class 546
The specifications for the enhanced ProductList class 548
How to work with default properties 550
How to create a default property 550
How to throw an argument exception 552
How to work with events 554
How to define events 554
How to use events 554
How to overload operators 556
An introduction to operator overloading 556
How to overload arithmetic operators 558
How to overload relational operators 560
An enhanced version of the Product Maintenance application 562
The code for the ProductList class 562
The code for the Product Maintenance form 566




Murach's VB 2008

Learn more about this book

View the table of contents


More about the eBook



Our Ironclad Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a full refund...no questions asked.