<Can you have a Kotlin property with an abstract s...
# stackoverflow
r
Can you have a Kotlin property with an abstract setter but an implemented getter? I'd like to have a property with an abstract setter and an implemented getter. However, I can't make anything along these lines compile: abstract class MyType { abstract val complexObject: ComplexObject abstract var myProperty: String get() = complexObject.someDerivationLogic } Something like this will compile: abstract class MyType { abstract val complexObject: ComplexObject fun getMyProperty(): String { return complexObject.someDerivationLogic...