Murach's C++ 2008
How to work with indexers, delegates, events, and operators

Chapter 12 covers the skills that you need whenever you create a C++ class. Now, this chapter shows you advanced techniques like how to create indexers, throw argument exceptions, define delegates, raise events, and overload operators.

Chapter 13 How to work with indexers, delegates, events, and operators
An introduction to the ProductList class 366
The code for a simple ProductList class 366
The specifications for the enhanced ProductList class 368
How to work with indexers 370
How to create an indexer 370
How to throw an argument exception 372
How to work with delegates and events 374
How to define and use a delegate 374
How to define and use events 376
How to overload operators 378
An introduction to operator overloading 378
How to overload arithmetic operators 380
How to overload relational operators 382
An enhanced version
of the Product Maintenance application
384
The code for the ProductList class 384
The code for the Product Maintenance form 388




Murach's C++ 2008

Learn more about this book

View the table of contents


More about the eBook



Our 100% 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 prompt refund...no questions asked.