1. Home
  2. Computing & Technology
  3. Visual Basic

Chapter 17 - Inheriting Forms and Creating Base Classes

By , About.com Guide

1 of 3

Adding Inheritance to VB.NET

Inheritance

Inheritance

Chapter 17 is the last chapter of the three chapter set in our text, Microsoft Visual Basic Step by Step, about using forms in VB.NET. In this chapter, the book introduces a general concept that we've been using all along - inheritance - with the familiar example of inheriting forms. In the lesson for Chapter 15, the first of the three chapter set, I made the point that in VB.NET, "forms are like any other software object." That's the whole idea in this chapter. First, we create and inherit from a form object. Then we create and inherit a class object - that is to say, the more general term that can include any software object (including forms since they're also classes).

The discussion in the book walks you through the process of creating not only a class, but also methods and properties for that class. You'll discover that OOP (Object Oriented Programming) can be so easy in VB.NET that you'll wonder what all the fuss is about. In this way, VB.NET continues the tradition of Visual Basic in making programmers productive in things that C++ programmers still sweat bullets to accomplish!

Explore Visual Basic
By Category
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Visual Basic
  4. Learn VB.NET
  5. Inheriting Forms and Creating Base Classes

©2009 About.com, a part of The New York Times Company.

All rights reserved.