Encapsulating behavior

objectify!

  • Command -- action + undo
  • Strategy -- choice of algorithms
  • Visitor -- decouple traversal and operations
  • Iterator -- access and traversal
  • State -- object state -> behavioral change

slide: Encapsulating behavior