Chapter 12. Derived Classes

 

Do not multiply objects without necessity.

 
 --W. Occam

Concepts and classesderived classesmember functionsconstruction and destructionclass hierarchiestype fieldsvirtual functionsabstract classestraditional class hierarchiesabstract classes as interfaceslocalizing object creationabstract classes and class hierarchiesadviceexercises.

Introduction

From Simula, C++ borrowed the concept of a class as a user-defined type and the concept of class hierarchies. In addition, it borrowed the idea for system design that classes should be used to model concepts in the programmer’s and the application’s world. C++ provides language constructs that directly support these design notions. Conversely, ...

Get The C++ Programming Language, Special 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.