Why can't i have a constructor for an object ?
# kotlin-native
y
Why can't i have a constructor for an object ?
j
I would suggest asking in #getting-started
👍 1
e
This isn't strictly related to Native. An object is a singleton, so you should not be able to instantiate it at will, like a class. The single instance is managed by Kotlin.
👍 1