road-to-software-engineering

Mostly fun stuff


Project maintained by theo-pnv Hosted on GitHub Pages — Theme by mattgraham

Design pattern - Strategy

Type: Behavioral

Intent: Capture abstraction in interface, bury implementation details in derived classes.

Structure:

Example: Quicksort is better than Bubblesort for large datasets.

Pros:

Cons:

Ressources: