Talking Kotlin cover image

Catching up with Jake Wharton

Talking Kotlin

00:00

Extensions in Java - What Are Extensions?

Cotland extensions are a way to add methods and properties to types that you don't control. In java, for example, if you want to merge two lists, you would write a static method on the first list as the first perameter,. And then the list you want to concatinate as the second parameter. But in Cotland, it's still creating an unoestatic method, but syntactically under the hood, it's calling getters and setters.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app