Chapter 20. Classes: A Deeper Look, Part 1

 

My object all sublime I shall achieve in time.

 
 --W. S. Gilbert
 

Is it a world to hide virtues in?

 
 --William Shakespeare
 

Don’t be “consistent,” but be simply true.

 
 --Oliver Wendell Holmes, Jr.
 

This above all: to thine own self be true.

 
 --William Shakespeare
<feature><title>Objectives</title>

In this chapter you will learn:

<objective>

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.

</objective>
<objective>

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.

</objective>
<objective>

To define constructors with default arguments. ...

Get C How to Program, Fifth 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.