14.4 — Const class objects and const member functions
In lesson , you learned that objects of a fundamental data type (int, double, char, etc…) can be made constant via the const keyword. All const variables must be initialized at time of creation. const int x; // compile error: not initialized const int y{}; // ok: value initialized const …