A Java geek
  • Me
  • Books
  • Speaking
  • Mentions
  • Focus
  • Newsletters

delegate

A collection of 1 posts
A look at Kotlin's delegation
Development

A look at Kotlin's delegation

Kotlin offers many exciting features. In general, developers tend to cite null safety as their favorite. For me, it’s function extensions. But delegation comes a close second. The delegation pattern The delegation pattern is described in the GoF book: Delegation is a way to make composition as powerful for reuse as inheritance [Lie86, JZ91]. In delegation, two objects are involved in handling a request: a receiving object delegates operations to its delegate.

Apr 18, 2021
A Java geek © 2008-2026
v. f2f27fbae8db7aefade91f46d7818bb26f83831f/13648477452
Latest Posts