Skip to content

Glossary: Software Design Patterns

Decorator

Also written: decorator pattern, decorators, @ decorator

As a pattern, a wrapper with the same interface as the object it wraps. It does a little extra work, like logging each quote, and passes the call on. Python's `@` decorators do the same for functions.

Where the book teaches it

Related terms

ProxyWrapperAdapter