Delegation in Kotlin by Philippe Breault

Delegation in Kotlin by Philippe Breault

Delegation in Kotlin
Level: Beginner
by Philippe Breault, American Express

Ever heard of the phrase “Prefer composition over inheritance”? One of the better patterns to achieve this is “Delegation”. And thankfully, Kotlin has built-in support for this pattern.

This talk will cover class delegation and delegated properties as a means to make your code more readable and reusable. We’ll take a look at both approaches’ strengths, weaknesses, and when you should use them. We will also take a look at the code that is generated under the hood to discuss performance implications.

https://gdgmontreal.com/2019/07/26/kotlin-everywhere/

1b77dd441f657f5aefb3e21283b252e6?s=128

GDG Montreal

August 28, 2019
Tweet