Decorator pattern in Kotlin

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 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s