6.9.  Review Questions

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

  1. What is inheritance for?

  2. Explain polymorphism. What is it? How can you use it?

  3. Explain the difference between dynamic binding and static binding. Describe the conditions that enable each.

  4. What is the difference between a function and a method?

  5. How do you override a base class method?

  6. What is a pure virtual function? What is it used for?

  7. What is an abstract class? What is is used for? What can you do with a concrete class that you cannot do with an abstract class?

  8. What does it mean for a base class function to be hidden? What can cause this to happen?

  9. Which member functions cannot be inherited from the base class? Explain why.