12.1 Fill in the blanks in each of the following statements:
Treating a base-class object as a(n) can cause errors.
Polymorphism helps eliminate logic.
If a class contains at least one pure
virtualfunction, it’s a(n) class.
Classes from which objects can be instantiated are called classes.
Operator can be used to downcast base-class pointers safely.
typeidreturns a reference to a(n) object.
involves using a base-class pointer or reference to invoke
virtualfunctions on base-class and derived-class objects.
Overridable functions are declared using keyword .
Casting a base-class pointer ...
Get C++ How to Program, 10/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.