Chapter 11. 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
<feature> <supertitle>Objectives</supertitle>

In this chapter you’ll learn:

<objective>

How inheritance promotes software reusability.

</objective>
<objective>

To create a derived class that inherits attributes and behaviors from a base class.

</objective>
<objective>

To use access modifier protected to give derived-class methods access to base-class members.

</objective>
<objective>

To access base-class members with base.

</objective>
<objective>

How constructors are used in ...

Get Visual C# 2010: How to Program, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.