Design patterns: Decorator – With Kotlin examples
The Decorator pattern (also known as Wrapper) is another pattern that categorized as a structural pattern and its intent: Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality. Let’s assume than we […]