Template Method Pattern - main players

  • Algorithm
    • A class that includes a TemplateMethod
  • TemplateMethod
    • A method that defers some parts of its operation to other classes
  • IPrimitives
    • The interface defining the operation(s) that TemplateMethod defers to other classes
  • AnyClass
    • Any class that implements the IPrimitives interface
  • Operation
    • One of the methods that TemplateMethod needs to complete its operation