{"id":"behavioral-patterns-encapsulate-variation","text":"Behavioral patterns encapsulate variation by defining an object for the frequently changing aspect: Strategy encapsulates an algorithm, State encapsulates state-dependent behavior, Mediator encapsulates protocol between objects, and Iterator encapsulates aggregate traversal.","truth_value":"IN","source":"entries/2026/06/17/gof-oo-chunk-22.md","source_url":"","source_hash":"","justifications":[],"dependents":["behavioral-patterns-favor-composition","gof-variation-taxonomy"],"metadata":{"last_premise_reviewed":"2026-06-17T18:19:22","premise_review_result":"pass"},"created_at":"2026-06-17T17:04:08+00:00","updated_at":"2026-06-17T17:04:08+00:00","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"behavioral-patterns-encapsulate-variation","truth_value":"IN","reason":"premise"}]}}