<Interface definition of public get, private set p...
# forum
r
Interface definition of public get, private set property Hi, I am new to Kotlin - just started learning the language, though I am familiar with both Java and C#. I am in the earlty stages of converting a C# program to Kotlin, and one of the first actions I needed to perform was to define and interface with a property with a public GET, but private SET. (C# definition of public and private - private being restricted to the class, not the file.) I eventually discovered that the official mechanism to achieve this is to declare the property as VAL in...