21.4 — Overloading the I/O operators
For classes that have multiple member variables, printing each of the individual variables on the screen can get tiresome fast. For example, consider the following class: class Point { private: double m_x{}; double m_y{}; double m_z{}; public: Point(double x=0.0, double y=0.0, double z=0.0) : m_x{x}, m_y{y}, m_z{z} { } double …