When is it necessary to use the decorator pattern? If possible, give me a real world example that is well-suited for the pattern.
Have a look at the Fowler description; it gives a concrete example relating to books/videos and a decorator "borrowable", you can find it here.