Tag: Decorator Design Pattern

4 years ago • 7 min read time

Key takeaways The decorator is a structural design pattern that uses composition instead of inheritance It provides a flexible alternative to sub-classing for extending functionality at runtime By enforcing the…