4 ms·
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
by skohan 7y 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.
- andrekandre 7y agoit’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 https://www.programiz.com/kotlin-programming/abstract-class