behavioural

Design Patterns – Strategy

This Behavioral Design Pattern is really useful and solves one of most common problems in OOP that is “do things decoupled”, is related to the O of Solid Principles – Open to extension but closed for modification. If you programming to an interface doing composition instead of inheritance, you’re probably already using it frequently. This Design Patterns – Strategy