* CircularStroke.java import java.awt.Color; public class CircularStroke extends Stroke { public CircularStroke(int x, int y, int r, boolean f) { // can call any parent or your own constructor // but it has to be the first statement super(x, y, r, f); // this(x, y, r, f, canvas.randomColor()); } public CircularStroke(int x, int y, int r, boolean f, Color c) { super(x, y, r, f, c); } /** * Draws on the canvas this circular stroke */ // private parent variables may still be accessible through accessor methods public void draw() { if (filled == true) { canvas.fillCircle(cx, cy, size, getColor()); } else { canvas.drawCircle(cx, cy, size, getColor()); } } }