... from the bottom up: first the base, then the members, and then the
derived class itself. They are destroyed in the opposite order: first the derived class itself, then the
members, and then the ... §12 .4. 2.
[10] An abstract class typically doesn’t need a constructor; §12 .4. 2.
[11] Keep the representations of distinct concepts distinct; §12 .4. 1.1.
The C++ Programmi...
...
};
Note the c co on ns st t after the (empty) argument list in the function declarations. It indicates that these
functions do not modify the state of a D Da at te e.
The C++ Programming Language, Third ... particular, it enables the compiler to detect illegal
uses of objects that would otherwise remain undetected until the program is thoroughly tested.
The C++ Prog...
... involved; §D .4. 4.1.
[ 14] Be aware of the limitations of t ti im me e_ _t t; §D .4. 4.1, §D .4. 4.5.
[15] Use a date-input routine that accepts a range of input formats; §D .4. 4.5.
[16] Prefer the character ... and then swapping representations. This obviously
handles self-assignment correctly. I decided that the efficiency gained from the test in the rare case
The C++ Progr...