O'Reilly logo

The C++ Programming Language, Fourth Edition by Bjarne Stroustrup

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3. A Tour of C++: Abstraction Mechanisms

Don’t Panic!

– Douglas Adams

Introduction

Classes

Concrete Types; Abstract Types; Virtual Functions; Class Hierarchies

Copy and Move

Copying Containers; Moving Containers; Resource Management; Suppressing Operations

Templates

Parameterized Types; Function Templates; Function Objects; Variadic Templates; Aliases

Advice

3.1. Introduction

This chapter aims to give you an idea of C++’s support for abstraction and resource management without going into a lot of detail. It 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required