Introduction to Extensions

Learn about extension functions in Kotlin, how to define and use them to extend classes, and their similarities to member functions.

Introduction to class members

The most intuitive way to define methods and properties is inside classes. Such elements are called:

  • Class members

  • Member functions

  • Member properties

Get hands-on with 1400+ tech skills courses.