Home Segments Index Top Previous Next

Chapter 35:

How To Use Protected and Private Class Derivations

You have seen that you can control access to member variables and member functions at the point where they are declared and defined by distributing them to the private, protected, and public parts of the class in which you declare and define them.

In this chapter, you learn that you can further limit access to member variables and member functions at the point where they are inherited by using private, protected, or public class derivation.