Chapter 17. Derived Classes

FAQ 17.01 What is the purpose of this chapter?

image

This chapter discusses derived classes and inheritance at the programming language level. Part II discusses the same information on a design level and should be read before this chapter. This chapter dwells only on public, single, nonvirtual inheritance, which is the most prevalent form. Chapter 38 discusses some of the other types of inheritance.

FAQ 17.02 How does C++ express inheritance?

image

Here is a typical C++ inheritance declaration.

This relationship can be described ...

Get C++ FAQs, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.