CISP 400 CH.15
True/False: Pointers to a base class may be assigned the address of a derived class object.
True
True/False: Static binding occurs when the compiler binds a function call at compile time.
True
________ functions are dynamically bound by the compiler.
Virtual
A class with at least one pure virtual function is called
an abstract class
Polymorphism is when ________ in a class hierarchy perform differently, depending upon the class of the object making the call.
member functions
A pure virtual function
must be overridden in a derived class for the function to be useful.
Polymorphism in C++ will not work unless
pointers or references are being used.
A virtual function is declared by placing the keyword ________ in front of the return type in the base class's function declaration.
virtual
In C++, polymorphism is based on the ability to make member functions of a class
virtual
To indicate that a member function of a class is pure virtual,
you must put = 0 where the body of the function would go.