June 2018
Intermediate to advanced
316 pages
6h 34m
English
For a read-only property marked with the val keyword, a delegated class has to have a getValue() method that takes the following arguments:
The getValue() method also has to return an instance that has the same type or supertype as a delegating property. It can be an extension function, as in the case of the Lazy class.
For a property marked with the var keyword, a delegate class also has to have a setValue() method that takes the following arguments:
Read now
Unlock full access