Part 3: Expanding Your C++ Programming Repertoire
The goal of this part is to expand your C++ programming skills, beyond the OOP skills, to encompass other critical features of C++.
The initial chapter in this section explores exception handling in C++ through understanding the mechanisms of try
, throw
, and catch
, and through examining many examples to explore exception mechanics by delving into various exception handling scenarios. Additionally, this chapter expands exception class hierarchies with new exception classes.
The next chapter digs into the topics of the proper usage of friend functions and friend classes, as well as operator overloading (which may sometimes require friends), to make operations polymorphic between built-in and user defined types.
The subsequent chapter explores using C++ templates to help make code generic and usable for a variety of data types using template functions and template classes. Additionally, this chapter explains how operator overloading...