10.2. JVM existence

Each struct is compiled to a self-contained JVM class.

Given:

module sample

struct Point = { x, y }

a class sample.types.Point is being generated.

It is important to note that:

  1. each struct class is final,
  2. each struct class inherits from gololang.GoloStruct,
  3. proper definitions of toString(), hashCode() and equals() are being provided.