Kotlin theorytheory 0/50 · 0%
Fundamentals · easy

7. Extension Functions

Adding methods to existing classes.

Kotlin allows you to extend a class with new functionality without having to inherit from the class.

Check your understanding

  1. 1. Where is the function defined?

  2. 2. Receiver type syntax?