October 1997
Intermediate to advanced
800 pages
20h 48m
English
Now that you understand the benefits of encapsulation and how to build objects with class constructors, let's learn more about what you can do with class definitions. This chapter explores namespaces with classes, class containment, static class members, and pointers to class members. We also discuss how to use friend and nested classes in designs and why the explicit keyword helps control unwanted type conversions. These concepts give you all the tools you'll need to formulate the right class definition for the right application.