public class PrintSquares { public static void main (String args[]) { ColoredSquare myRedSquare = new ColoredSquare(40, 40, 20, 255, 0, 0); CourseSquare myCC = new CourseSquare(30,30); // Print data for myRedSquare System.out.println("\t\tThe Colored Square!"); System.out.println("the colored square's color is " + myRedSquare.getColor()); System.out.println("the colored square's center is (" + myRedSquare.getCenterX() + ", " + myRedSquare.getCenterY() + ")"); System.out.println("the colored square's side is " + myRedSquare.getSide()); System.out.println("the colored square's area is " + myRedSquare.getArea()); // Print data for myCC System.out.println("\n\t\tThe Course Square!"); System.out.println("the square's center is (" + myCC.getCenterX() + ", " + myCC.getCenterY() + ")"); System.out.println("the square's side is " + myCC.getSide()); System.out.println("the square's area is " + myCC.getArea()); } // main } // PrintSquares