O'Reilly logo

C++ How to Program, Sixth 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 10. 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

OBJECTIVES

In this chapter you’ll learn:

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

  • To create objects composed of other objects.

  • To use friend functions and friend classes.

  • To use the this pointer.

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

  • To use static data members and member functions.

  • The concept of a container class.

  • The notion of iterator classes that walk through the elements of container ...

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