Tag: Strategy Design Pattern

Strategy Design Pattern

Introduction: Sometimes you want your object to behave differently if its internal status changed. The strategy Design pattern enables client code to choose which behavior from a family of behaviors and give client code a simple way to enable that behavior. Example:   interface ISortStrategy { string Sort(); } public string Sort() { return “0 Read More …