Skip to content

Latest commit

 

History

History

strategy

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Strategy

With this pattern you can create multiple strategy on solving a specific problem. Each strategy are separated object that does algorithm.

You can swap or change strategy at runtime.

Open / Closed Principle since you can add more strategy without breaking existing code.