Chapter 10. Object-Oriented Programming: Inheritance

Say not you know another entirely, till you have divided an inheritance with him.

Johann Kasper Lavater

This method is to define as the number of a class the class of all classes similar to the given class.

Bertrand Russell

Good as it is to inherit a library, it is better to collect one.

Augustine Birrell

Save base authority from others’ books.

William Shakespeare

Objectives

In this chapter you will learn:

  • What inheritance is and how it promotes software reusability.

  • The notions of base classes and derived classes.

  • To use keyword Inherits to create a class that inherits attributes and behaviors from another class.

  • To use the access modifier Protected in a base class to give derived ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.