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 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.