Tag Archives: Delegating

Delegating responsibilities using by in Kotlin | by Gandikota Venkata Ravi Kumar | Jan, 2025

Delegating responsibilities using by in Kotlin | by Gandikota Venkata Ravi Kumar | Jan, 2025

I was wondering how the kotlin keyword “by” is breaking the inheritance. I’ve got the explanation as follows: In Kotlin, the by keyword is used for delegation, which allows a class to delegate the implementation of an interface to another class. This can simplify code and reduce the need for traditional inheritance. scratch.kts All the story is revolving around the …

Read More »