A good answer might be:

  • How many objects are there when the program is executing?
    • Two: a myFrame object and a WindowQuitter object
  • How many class definitions were used in the program?
    • Three: the myFrame class is used to construct the myFrame object; the WindowQuitter class is used to construct the WindowQuitter object; and the GUItester class is used to hold the static main() method.

The Big Picture

Here is a picture that shows everything. The previous picture just showed the parts in blue.


Usually you would not think about all the things in this picture at once, but you would think about just one aspect at a time (as in the previous picture.)

QUESTION 8:

Of all the things in this picture, which ones do you (the programmer) actually have to write?

Click Here after you have answered the question