I've got a property of type A that provides 3 valu...
# getting-started
a
I've got a property of type A that provides 3 values, all of type B. I'd like to keep my A member private, and offer the 3 B values through public properties with custom getters, but the third one depends on an argument. I can write:
Copy code
val one: B
        get() = backingA.one

    val theOther: B
        get() = backingA.theOther
but the third property is giving me trouble:
Copy code
val selected: B
    operator fun get(myArg: ArgType): B
            = backingA.getSelected(myArg)
because the selected property "must be initialized or be abstract".