An Introduction to Object-Oriented Programming

By Timothy Budd

Study Guide for Chapter 4


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. In what ways does message passing differ from a procedure call?

  2. What are the three portions of a message passing expression?

  3. In what ways does stack based memory allocation differ from heap based memory allocation?

  4. What is meant by the assertion that in Pascal naming and allocation of dynamic variables are tied, whereas in C they are separate.

  5. What does it mean to say a language uses garbage collection to recover no-longer used dynamically allocated memory?

  6. What are some arguments for and against the use of automatic garbage collection?

  7. How is the lifetime of a value different from the scope of a variable?

  8. What does it mean to say a variable is immutable?

Contents copyright Timothy Budd, 1995.