I think the class idiom (no object/singleton class construct obviously in Java) of a private constructor similar to Java is the standard way... at least how Hadi Hariri recommended in one of his JB Kotlin courses..
f
fgaule
09/08/2017, 6:23 PM
When using a private constrcut, foo function is not accesible from Java