CS 4773 Object Oriented Systems The Strategy Pattern


This material is from Chapter 9 of the Design Patterns Explained book.

Guiding Principles Example: Producing a bill of sale Problem: you want to do things differently, depending on the input received.

Methods of handling variation

Example from the editor