Tag: Decorator Design Pattern

1 year 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…