record Brush() {}//In Java there are no propertiesrecord ColorPoint(int x, int y, Brush color) {}var point = new ColorPoint( 1, 5, new Brush());System.out.println("point is " + point);