Structures (records)

record Point(int x, int y) {

    public Point() { 
        this(00);
    } 
}

var p1 = new Point(12);
//p1.x is 1 and p1.y is 2

var p2 = new Point();
//p2.x is 0 and p2.y is 0

System.out.printf(
    "p1 is (%d, %d)\n", p1.x(), p1.y());
System.out.printf(
    "p2 is (%d, %d)\n", p2.x(), p2.y());