Home Segments Index Top Previous Next

245: Sidetrip

In addition to public derivations, there are protected derivations and private derivations, expressed by protected and private, which you learn about later, in the hardcopy version of this book. Protected and private derivations can combine with variable declarations and function definitions in public and private parts of class definitions as well as with another part, introduced in the hardcopy version of this book, called the protected part. Exploiting all these potential derivation-type–class-part combinations adds a dimension of complexity to C++ programming.