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

the keyword defines a class and creates an instance (in other words, an object) of that class at the same time


Cover of Kotlin in Action


if it defines class and creates instance of that class and also defines singleton, which instance will it create when I'll define the same class again?