When creating a static factory method for a Kotlin...
# announcements
a
When creating a static factory method for a Kotlin class, how would you prevent it from being instantiated without calling the static factory method? If it was Java, I would make a private constructor or throw an Exception in a public constructor. What to do for Kotlin?