If you feel curious how would an implementation of decorator design pattern look like in Kotlin, you came to the right place. This example is just a very basic thing that you then tweak until it’s perfect. You can find decorator definition yourself, but what’s important is that you can compose chain of decorators at runtime and in such a way – you can control runtime behavior of your system.
Liked this one? Subscribe 🙂