O'Reilly logo
  • MICHAEL MASLENKO thinks this is interesting:

Just like a class, an object declaration can contain declarations of properties, methods, initializer blocks, and so on. The only things that aren’t allowed are constructors (either primary or secondary)


Cover of Kotlin in Action


7 syntax for singletons with object