import java.awt.Graphics; import java.awt.Color; public class MyCirc { public static void main (String args[]) { ColoredCircle myRedCircle = new ColoredCircle(40, 40, 20, 255, 0, 0); CourseCircle myCC = new CourseCircle(30,30); // Print data for myRedCircle System.out.println("\t\tThe Colored Circle!"); System.out.println("the colored circle's color is " + myRedCircle.getColor()); System.out.println("the colored circle's center is (" + myRedCircle.getCenterX() + ", " + myRedCircle.getCenterY() + ")"); System.out.println("the colored circle's radius is " + myRedCircle.getRadius()); System.out.println("the colored circle's area is " + myRedCircle.getArea()); // Print data for myCC System.out.println("\n\t\tThe Course Circle!"); System.out.println("the circle's center is (" + myCC.getCenterX() + ", " + myCC.getCenterY() + ")"); System.out.println("the circle's radius is " + myCC.getRadius()); System.out.println("the circle's area is " + myCC.getArea()); } // main } // MyCirc