created: 03/15/98

CHAPTER 38 — More Applet Examples

This chapter continues the example of the previous chapter.

Chapter Topics:

Recall that at the end of the last chapter the paint() method of the applet was starting to get uncomfortably complicated. This is sometimes a sign that a new class is needed to manage some of the complication. It would be nice to have a Circle class to contain the complications of drawing circles.

QUESTION 1:

Objects have both state (data) and behavior (methods.) In general, what state and what behavior should objects of our class Circle have?