A design pattern for dynamically adding new behavior to an existing object.
Instead of using inheritance, it extends behavior by wrapping an object in another object (a decorator). Its defining feature is being able to flexibly combine added behaviors without modifying the original class.
© 2026 ITBGM