- Define the algorithm in the base class
- The algorithm calls the primitive operations in order
- Define the primitive operations as virtual functions in base class,
with appropriate default behavior, or leave undefined
- Each derived class defines the primitives, but not the algorithm
|
|