Visual Basic 2008 Programming: Business Applications with a Design Perspective
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9
Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Appendix A Appendix B Appendix C Home
Loading
Last change: February 13 2016 18:48:19.

 Chapter in PDF

Table of Contents

Chapter 13: Object-Oriented Programming
Last change: February 13 2016 18:47:42.
<<PreviousNext>>

13.1 Inheritance

Inheritance allows the creation of a new class from an existing (base) class. The new class inherits all the properties, methods, and events from the base class. The new class is recognized as the derived class. In other languages, the base class is also called the super class, while the derived class is called subclass. You can add new code in the derived class to extend the functionality of the base class. To create a derived class, you use the Inherits statement. For example, suppose you have a base class called RealEstate from which you want to derive a new class called Residential. Your code for the Residential class will appear:

Public Class Residential Inherits RealEstate ‘Other statements End Class

Last change: February 13 2016 18:47:40.
  1. 13.1 Inheritance
    1. Inheritance Hierarchy
    2. Why Inheritance?
    3. An Inheritance Example
    4. Inheriting from VS 2008 Classes
    5. Creating Event Arguments
    6. Hiding Members from Classes Outside the Class Hierarchy
    7. The MustInherit and NotIneritable Classes
    8. <<PreviousNext>>