To use the decorator pattern, you wrap an object in another object in order to extend behaviour . The objects all implement the same interface, so the decorators can stack on top of one another, extendng the behaviour further.
To use the decorator pattern, you wrap an object in another object in order to extend behaviour . The objects all implement the same interface, so the decorators can stack on top of one another, extendng the behaviour further.