9. Classes: A Deeper Look, Part 1

Objectives

In this chapter you’ll learn:

Image  How to use a preprocessor wrapper to prevent multiple definition errors caused by including more than one copy of a header file in a source-code file.

Image  To understand class scope and accessing class members via the name of an object, a reference to an object or a pointer to an object.

Image  To define constructors with default arguments.

  How destructors are used to perform ...

Get C++ for Programmers: Deitel now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.