Chapter 15. Friends, Exceptions, and More
In this chapter you’ll learn about the following:
• Friend class methods
• Throwing exceptions,
try blocks, and
• Exception classes
• Runtime type identification (RTTI)
This chapter ties up some loose ends and ventures into some of the most recent additions to the C++ language. The loose ends include friend classes, friend member functions, and nested classes, which are classes declared within other classes. The recent additions discussed here are exceptions, runtime type identification (RTTI), and improved type cast control. C++ exception handling provides a mechanism for dealing ...