O'Reilly logo

C How to Program, Fifth Edition by H. M. Deitel - Deitel & Associates, Inc., P. J. Deitel - Deitel & Associates, Inc.

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

Chapter 21. Classes: A Deeper Look, Part 2

 

But what, to serve our private ends, Forbids the cheating of our friends?

 
 --Charles Churchill
 

Instead of this absurd division into sexes they ought to class people as static and dynamic.

 
 --Evelyn Waugh
 

Have no friends not equal to yourself.

 
 --Confucius
<feature><title>Objectives</title>

In this chapter you will learn:

<objective>

To specify const (constant) objects and const member functions.

</objective>
<objective>

To create objects composed of other objects.

</objective>
<objective>

To use friend functions and friend classes.

</objective>
<objective>

To use the this pointer.

</objective>
<objective>

To create and destroy objects dynamically with operators new and delete, respectively.

</objective>
<objective> ...

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