Practical Meaning of Inheritance

When we get to how this process of abstraction and categorization applies to programming language, we find the following practical implications of this notion. What inheritance means is that data members defined in a parent class become part of the child class. And behavior defined in the parent class are part of the child class.

Note that this interpretation is orthogonal to the visibility modifiers, which we also discussed in an earlier chapter. Thus a private field in a parent is still part of the child class, but it may not be accessible to the child class.

[audio] [real] Text to accompany slide03, in Chapter 8 of An Introduction to Object-Oriented Programming