Summary

Team-Fly    

 
Application Development Using Visual Basic and .NET
By Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
Table of Contents
Chapter 5.  Inheritance and Exceptions in VB.NET


In this chapter we studied, in detail, the object-oriented aspects of VB.NET, with an emphasis on inheritance. After a review of the fundamentals of object-oriented programming, we introduced the Acme Travel Agency case study, which runs as a strand throughout the entire book. We examined the suitable abstractions that enable us to implement a reservation system for a variety of resources that may be reserved, and we provided an implementation of a hotel reservation system. The abstract base classes we defined provide reusable code that can enable us to easily implement other kinds of reservation systems. The key to good design is to find the right abstractions.

We saw how VB.NET language features facilitate object-oriented programming. Certain details of VB.NET, such as use of access control ( Public , Private , Protected , and Friend ) and properties, can help express abstractions in a way that is safe and easy to use.

We then looked at other object-oriented features of VB.NET, such as virtual methods , method hiding, method overriding, and polymorphism. A pitfall in languages supporting inheritance is the fragile base class problem, and we have seen how VB.NET helps in avoiding this pitfall.

Finally, we discussed exception handling in VB.NET.


Team-Fly    
Top
 


Application Development Using Visual BasicR and .NET
Application Development Using Visual BasicR and .NET
ISBN: N/A
EAN: N/A
Year: 2002
Pages: 190

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