Define a family of algorithms, encapsulate each one, and make them interchangeable. Lets the algorithm vary independently
Reveal answer
Fill a bubble to check yourself
Define a family of algorithms, encapsulate each one, and make them interchangeable. Lets the algorithm vary independently