August 2017
Intermediate to advanced
440 pages
10h
English
Kotlin has a feature called class delegation. It is a really inconspicuous feature that has many practical applications. It is worth noticing, that it is strongly connected with two design patterns: the Delegation pattern and the Decorator patterns. We will discuss those patterns in more detail in upcoming sections. Delegation and Decorator pattern have been around for many years, but in Java their implementation required a lot of boilerplate code. Kotlin was one of the first languages to provide native support for those patterns, reducing boilerplate code to a minimum.
Read now
Unlock full access