22.5.  Review Questions

[ fromfile: inheritance-detail-questions.xml id: inheritance-detail-questions ]

  1. What is a vtable?

  2. What is a polymorphic type?

  3. Which kinds of member functions are not inherited? Why?

  4. Under what circumstances should you have virtual destructors?

  5. What happens when a virtual function is called from a base class constructor?

  6. What is virtual inheritance? What problems can it be used to solve?

  7. Why would you use nonpublic derivation?