Quiz 3

CS23

20 pts., May 1, 1996

  1. What is polymorphism?

    Late binding, or run-time resolution of function names. Stage is set when a derived class re-implements a function which is declared as virtual in a base class.

  2. How must a class method be declared so that it can be polymorphic?

    virtual.

  3. What is a friend?

    A non-member function of a class which is granted member access privileges to members of the class.

  4. What is distinctive about a static data member of a class?

    All class instances (variables) share the one, unique instance of the static data member.



Thomas P. Kelliher
Mon May 6 16:52:54 EDT 1996
Tom Kelliher