An Introduction to Object-Oriented Programming

By Timothy Budd

Study Guide for Chapter 9


Learning Objectives

After reading this chapter, you should be able to:

Study Questions

You may wish to use the print or save as command on your web browser to produce a copy of this study guide. That way you can fill in the answers to the questions as part of your assimilating the information you learn in this chapter.
  1. What is the principle of substitutability?

  2. What is the is-a rule of thumb? What is the has-a rule of thumb?

  3. Give three examples in real life of pairs of concepts which satisfy the is-a relation, and three pairs which satisfy the has-a relation.

  4. Give a short characterization of the software reuse technique known as composition.

  5. Give a short characterization of the software reuse technique known as inheritance.

  6. What is a private inheritance? How does it differ from normal (public) inheritance?

  7. What are some of the advantages of composition over inheritance? What are some of the advantages of inheritance over composition?

  8. What is the yo-yo problem?

  9. What are some of the problems that prevent the widespread application of reusable general purpose components in software construction?

Contents copyright Timothy Budd, 1995.