Design patterns – Part 2: Decorator pattern
For those, skilled in Java development, Decorator patterns are nothing new, as they are quite common in Java, i.e. FileInputStream with it’s decorator BufferedInputStream class. The definition says: The Decorator Pattern attaches additional responsibilities to an object dynamically. More theoretical background can be found on Wikipedia.