The Sales_data
class is pretty simple, yet it allowed us to explore quite a bit of the language support for classes. In this section, we’ll cover some additional class-related features that Sales_data
doesn’t need to use. These features include type members, in-class initializers for members of class type, mutable
data members, inline
member functions, returning *this
from a member function, more about how we define and use class types, and class friendship.