Fields and properties

Structures (records)

record Brush() {}

//In Java there are no properties
record ColorPoint(int x, int y, Brush color) {}

var point = new ColorPoint(
    1, 5, new Brush());

System.out.println("point is " + point);