When defining interfaces with a single abstract method you can use a lambda expression to avoid introducing a new class or anonymous objects.

In this video, you will learn how to use the Kotlin language Functional (SAM) interfaces to achieve clean code.



Hope you enjoy and do not forget to subscribe to the channel and hit the bell button to get notified when there is a new video.