package Shape; public class ShapeTest { public static void main(String[] args){ System.out.println("--测试三个类--"); //circle Circle round=new Circle(5); Rectangle b=new Rectangle(4,7); Triangle c=new Triangle(8,4); ShapeUtil.printArea(round); ShapeUtil.printArea(b); ShapeUtil.printArea(c); } }