next up previous
Next: Traversal Pattern Up: Evolution of Object Behavior Previous: Altering the Behavior

Altering the Behavior of Collaborating Objects

  In the previous section, the behavior of a single object was modified at run-time by altering the implementation of an instance-stored method. In this section, we demonstrate how to alter the behavior of a group of collaborating objects during execution of some task by attaching a context to a method invocation. We present a technique for altering the implementation of a class-stored method to affect all class instances.

Karl Lieberherr
Tue Jan 21 09:24:10 EST 1997