Need Assistance?

support@tutorialshub.in

Generics, Variance & Delegation

Class Delegation (by Keyword)

ADVERTISEMENT
Kotlin Free Lesson
5 min read
ADVERTISEMENT

Favor composition over inheritance effortlessly: class CachedRepo(val real: Repo) : Repo by real forwards every method automatically while letting you override just the ones you want!

ADVERTISEMENT
Hi, I'm Tuby! Here to help you