Intermediate
Kotlin
Q47 / 100
What is delegation in Kotlin using the by keyword?
Correct! Well done.
Incorrect.
The correct answer is B) Forwarding interface implementation or property access to another object automatically
B
Correct Answer
Forwarding interface implementation or property access to another object automatically
Explanation
class Derived(base: Base) : Base by base delegates all Base method calls to base. Property delegation (val x by Delegate()) customizes get/set.
Progress
47/100