Inter-type declarations

Table A.5. Inter-type declarations

Modifiers ReturnType OnType . Id(Formals) { Body } Defines a method on OnType.
abstract Modifiers ReturnType OnType . Id(Formals); Defines an abstract method on OnType.
Modifiers OnType.new(Formals) { Body } Defines a a constructor on OnType.
Modifiers Type OnType.Id [ = Expression ]; Defines a field on OnType.