An Introduction to Object-Oriented Programming

By Timothy Budd

Study Guide for Chapter 20

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 as you read the material.
  1. What are the two broad ways of describing the idea of a class?

  2. What are some of the ways in which types are used in programming languages?

  3. How is the class, when viewed as a type, different from a record type?

  4. How can overriding a method disrupt the process of verifying or testing an algorithm?

  5. How does the principle of substitutability interfeer with the assignment of storage to object variables?

  6. When classes are viewed as objects, what is the major responsibility of the class object? What information must this object maintain in order to perform this task?

  7. What is a metaclass? What problem is being solved by the introduction of the metaclass mechanism?

  8. What is a class variable (or class data field)? Why is the initialization of a class variable a problem?

  9. What is a delegate? How can the use of delegates support the sharing of behavior?

Contents copyright Timothy Budd, 1995.