Skip to content

Glossary: Software Design Patterns in C++

Decorator

Also written: decorator pattern

A wrapper with the same interface as the object it wraps that does extra work and passes the call on. `LoggedCarrier` logs each quote without any carrier being edited.

Where the book teaches it

Related terms

WrapperProxyAdapter