Chapter 25. Other Topics

 

What’s in a name? that which we call a rose By any other name would smell as sweet.

 
 --William Shakespeare
 

O Diamond! Diamond! thou little knowest the mischief done!

 
 --Sir Isaac Newton

OBJECTIVES

In this chapter you’ll learn:

  • To use const_cast to temporarily treat a const object as a non-const object.

  • To use namespaces.

  • To use operator keywords.

  • To use mutable members in const objects.

  • To use class-member pointer operators .* and ->*.

  • To use multiple inheritance.

  • The role of virtual base classes in multiple inheritance.

Get C++ How to Program, Sixth Edition now with O’Reilly online learning.

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