Strategy

The purpose is to allow you to swap computational algorithms dynamically based on the runtime situation
Delegates offer a more lightweight alternatives to interfaces for implementing this pattern


Subclasses decide how to implement the individual steps in a algorithm
Encapsulates interchangeable behaviours and uses delegation to decide which one to use.



© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext