Comment by skohan
6 years ago
How do Kotlin's interfaces compare to Swift protocols? Being able to do things like provide default implementations in a protocol are some of the biggest Swift features for me.
6 years ago
How do Kotlin's interfaces compare to Swift protocols? Being able to do things like provide default implementations in a protocol are some of the biggest Swift features for me.
it’s not exactly the same thing, but you can kind of accomplish something similar to “swift protocols with default implementations” with abstract classes
https://www.programiz.com/kotlin-programming/abstract-class