public class ShapeUtil { public static void printArea(Shape shape) { System.out.println("面积为: " + shape.getArea()); } }