Your Library
Chapter 5 · ClassesConcrete types, polymorphism, and resource ownership
Contents
Chapter 4

Classes

Concrete types, polymorphism, and resource ownership

Classes let C++ programs represent concepts as types with state and operations. This chapter compares concrete types with abstract interfaces, introduces virtual dispatch and class hierarchies, and shows how RAII and smart pointers make resource ownership reliable.

In this chapter

  1. 4.1Lesson 5: Classes