record Brush() {}//Java 中没有属性record ColorPoint(int x, int y, Brush color) {}var point = new ColorPoint( 1, 5, new Brush());System.out.println("point is " + point);