Computer scienceFundamentalsEssentialsSoftware constructionDesign patternsStructural design patterns

Decorator pattern

Decorator implementation process

Report a typo

Sort the algorithm for decorator pattern implementation.

Put the items in the correct order
Extend basic wrapper in individual wrappers and add new functions
Write an interface that describes methods for your object
Create object instances using individual wrappers
Write basic wrapper(decorator) that will share an interface with the initial object
Write initial object that cannot be rewritten
___

Create a free account to access the full topic