Implementing Decorator Design Pattern
suggest changeRemarks
Pros of using Decorator:
- you can add new functionalities at runtime in different configurations
- good alternative for inheritance
- client can choose configuration he wants to use
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents