Join Slack
Powered by
Why can't i have a constructor for an object ?
# kotlin-native
y
youssef
02/02/2024, 6:43 PM
Why can't i have a constructor for an object ?
j
jw
02/02/2024, 6:44 PM
I would suggest asking in
#getting-started
👍 1
e
Edoardo Luppi
02/02/2024, 6:44 PM
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
5
Views
Open in Slack
Previous
Next