How to Add New Functionality with Kotlin's Extension Function?
Class extensions are a powerful feature of Kotlin that allow you to add behavior to classes without extending them. In this video we will take a look at how to work with class extensions, some of the subtleties of how class extensions work with custom objects, and how to define your own class extensions to simplify your code.
Kotlin Class Extensions
Kotlin Programming by Big Nerd Ranch