Join Slack
Powered by
<@U0DJ8K3CH> I think singleton can be done like th...
# announcements
d
Dmitry Kandalov
10/12/2016, 10:22 PM
@dariuszbacinski
I think singleton can be done like this (because it’s already part of the language)
Copy code
object PrinterDriver { fun print() = println("Printing with object: $this") }
👍 1
Open in Slack
Previous
Next