Murach's Visual Basic 2005 How to work with inheritance
This chapter shows you how inheritance is used throughout
the .NET classes and how you can use inheritance in your own
Visual Basic classes. When you're done, you'll know how to
create base and derived classes, how polymorphism works, and
how to use casting with inheritance. To make sure that you
get all of that, this chapter presents a complete application
that uses a Product base class, Book and Software derived
classes, and a ProductList class that inherits the List()
class (one of the new typed collection classes available from
.NET 2.0). Wow!
|
|
|
|
How inheritance works |
624 |
|
How the .NET Framework uses inheritance |
626 |
|
Methods inherited from the System.Object
class |
628 |
|
How to use inheritance in your applications |
630 |
|
|
How to create a base class |
632 |
|
How to create a derived class |
634 |
|
How polymorphism works |
636 |
|
|
The operation of the Product Maintenance
application |
638 |
|
The code for the Product, Book, and
Software classes |
640 |
|
The code for the ProductList class |
644 |
|
The code for the Product Maintenance
form |
646 |
|
The code for the New Product form |
648 |
|
|
How to use the Type class to get information
about an object's type |
650 |
|
How to use casting with inheritance |
652 |
|
|
How to work with abstract classes |
654 |
|
How to work with sealed classes |
656 |
|
 |
|
|
|
|
© Copyright 1998-2008 Mike Murach &
Associates, Inc. All rights reserved.
|