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.
Classes
Concrete types, polymorphism, and resource ownership