Learning Kotlin and Swift

Kotlin vs Swift: The Extension

Explore Kotlin and Swift together and learn their differences

--

Photo by Toa Heftiba on Unsplash

In SOLID Principle, the second one is the Open-Close Principle, i.e. Open for Extension and Close for Modification. Both Kotlin and Swift do have the capability to extends to a class on top of its ability for object inheritance.

--

--