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