Computer scienceProgramming languagesKotlinObject-oriented programmingObject-oriented programming features

Building your own delegate

Building a delegate class in Kotlin

Report a typo
Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
In Kotlin, consider the following code snippet:
class Example {  var p: String by Delegate("initialValue")}
. What is the correct way to build the Delegate class to successfully delegate the property p, initialize it with a provided value and store all the changes of this property in a list?
Select one option from the list
___

Create a free account to access the full topic