Design Patterns

Design Patterns : Decorator pattern

Intent Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to sub-classing for extending functionality. …

Design Patterns : Strategy pattern

Motivation There are situations where the classes differ only by their behaviour, and on such situations it is advisable to isolate the algorithms into …