22. Other Topics
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. |
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
Outline |
|
| 22.1 |
Introduction |
| 22.2 |
const_cast
Operator |
| 22.3 |
namespaces |
| 22.4 |
Operator Keywords |
| 22.5 |
mutable Class
Members |
| 22.6 |
Pointers to Class Members
(.* and ->*) |
| 22.7 |
Multiple Inheritance |
| 22.8 |
Multiple Inheritance and
virtual Base Classes |
| 22.9 |
Wrap-Up |
|