cfleming
05/08/2018, 12:25 AMpublic interface MyInterface {
String getText();
}
I can’t seem to use:
class MyClass(val text: String): MyInterfaceCzar
05/08/2018, 12:35 AMclass MyImplementation(internal val text: String) : MyInterface {
override fun getText() = text
}Czar
05/08/2018, 12:41 AMinternal instead of private allows you to use .text with its instances when called from the same module from kotlin, if you kept it private you would have to use .getText() even from Kotlin.cfleming
05/08/2018, 1:41 AM