O'Reilly logo

Start Here!™ Fundamentals of Microsoft® .NET Programming by Rod Stephens

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Inheritance Diagrams

An inheritance diagram is a drawing that makes it easy to visualize the inheritance relationships among classes. The normal convention uses rectangles to represent classes. A line ending in an arrowhead, with the arrowhead pointing to the parent class, indicates an inheritance relationship. If space permits, child classes are usually drawn below parent classes to make the direction of the inheritance clearer.

Figure 10-1 shows a simple inheritance diagram. In this example, the CheckingAccount and SavingsAccount classes both inherit from the BankAccount parent class. The OverdraftAccount class inherits from CheckingAccount.

Inheritance diagrams, such as this one, show the inheritance relationships among classes.

Figure 10-1. Inheritance ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required