DEV Community

CodeToDeploy
CodeToDeploy

Posted on

Why Kotlin’s open Keyword Changed How I Think About Inheritance

From Java’s open-by-default to Kotlin’s intentional design — a paradigm shift that makes better developers

When I first transitioned from Java to Kotlin for Android development, I encountered a peculiar compilation error that left me scratching my head for hours. I was trying to extend a simple class, something I’d done hundreds of times in Java, but Kotlin kept throwing errors at me.

https://medium.com/codetodeploy/why-kotlins-open-keyword-changed-how-i-think-about-inheritance-ac0eaf27d274?sk=2e5387f0f8559a61a8be511e608881e5

Top comments (0)