import java.awt.Color; // class Circle is derived from class Shape public class Circle extends Shape { private int center_x; private int center_y; private int radius; // radius cannot be < 0 public Circle() { super(); // invoke the parent constructor // for THIS object System.out.println("Running Circle() constructor"); center_x = 0; center_y = 0; radius = 1; } public Circle(Color c, boolean f, int cx, int cy, int r) { super(c, f); // call parent constructor with params System.out.println("Running Circle constructor with params"); center_x = cx; center_y = cy; radius = r; } public void draw() { super.draw(); // calling BASE CLASS version of draw() // to do any shared work System.out.println("running code in Circle's draw() method"); } }