Kotlin allows you to extend a class with new functionality without having to inherit from the class.
← Kotlin theorytheory 0/50 · 0%
Fundamentals · easy
7. Extension Functions
Adding methods to existing classes.
Check your understanding
1. Where is the function defined?
2. Receiver type syntax?