I was going through Kotlin
reference document and then I saw this.
The class declaration consists of the class name, the class header (
tldr: they want to demonstrate it's possible
even an empty class is of type Any
and therefore has certain methods automatically. I think in most cases, this does not make sense, but in the documentation case it's used to show the simplest possible definition of a class.
The Java equivalent would be:
public final class Empty {
}