Note: This content was generated by AI. I am working on this page to provide personal content of better quality.
Decorator
Nota bene : This content was generated by AI. I am working on this page to provide personal content of better quality.
Attach new responsibilities to an object dynamically instead of subclassing.
Intent
Stack behaviors (logging, cache, compression) around a service.
Python example
Chargement…
Console output
2.7
When to use
Mix-and-match extensions at runtime without subclass explosion.