Graphical Objects can Draw themselves

Every object knows how to draw itself. Again, this task is made easy by using various routines provided by the Apple graphics library. A wall is a black rectangle. A hole is a painted oval. A ball is either a frame, if its the cue ball, or a painted circle.

[audio] [real] Text to accompany slide6, in Chapter 6 of An Introduction to Object-Oriented Programming