2. Decorator Pattern Example. Note that in the first tree1 object, we’re only decorating it with only one Garland, while the other tree2 object we’re decorating with one BubbleLights and two Garlands . This pattern gives us this flexibility to add as many decorators as we want at runtime.