| Next | February 2001 | Slide #45 |
Suppose we realize that both Buttons and ScrollBars can be "activated"
(Canvases cannot)
Each needs activate and activated methods
We could add both methods to both classes
But it's better to abstract the common behavior into a separate class

This is an example of Refactoring
| Next | ![]() |
Copyright © 2001 M-J. Dominus |