created: 03/15/98; revised: 08/18/03, 02/12/06

CHAPTER 38 — More Applet Examples

This chapter continues the example of the previous chapter.

Chapter Topics:

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.

QUESTION 1:

What data should be part of a Circle object? What methods should it have?