created: 03/15/98; revised: 08/18/03, 02/12/06
This chapter continues the example of the previous chapter.
Circle
class
The
paint()
method in the applet at the end of the last chapter
is too complicated.
This is sometimes a sign that a new class is
needed to manage the complication.
This chapter designs a Circle
class to
contain the complications of drawing circles.
What data should be part of a Circle
object?
What methods should it have?