December 1998
Intermediate to advanced
624 pages
13h 8m
English
![]()
This chapter explores static and dynamic type checking, both of which are allowed in C++. Its main theme is that static type checking is always a good idea, while the impulse to use dynamic type checking should be carefully controlled. In those cases, such as persistence, where some form of dynamic type checking might be required, runtime type identification (RTTI) should be used.
Static type checking, sometimes known as static typing, is when the compiler checks the type correctness of operations at compile time. For example, ...
Read now
Unlock full access