O'Reilly logo

Programming Microsoft® Visual C#® 2005: The Language by Donis Marshall

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

Chapter 3. Inheritance

Classes are often related to other classes. The two popular methods of relating classes are containment, also known as composition, and inheritance. Containment is a "has a" relationship, where a class contains or embeds another class. For example, a timestamp contains time. Inheritance is based on the "is a" relationship, in which one class is a type of another class. For example, an hourly employee is a kind of employee.

Inheritance involves a base type and a derived type, where a derived type is a kind ...

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