4
Classes
Those types are not “abstract”; they are as real as int
and float
.
– Doug McIlroy
4.1 Introduction
This chapter and the next three aim to give you an idea of C++’s support for abstraction and resource management without going into a lot of detail:
This chapter informally presents ways of defining and using new types (user-defined types). In particular, it presents the basic properties, implementation techniques, and language facilities used for concrete classes, abstract classes, and class hierarchies.
Chapter 5 presents ...
Get A Tour of C++, 2nd 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.