{"id":"gof-visitor-double-dispatch-via-accept","text":"In the Visitor pattern, when an element accepts a visitor, it calls a visitor method that encodes the element's class (e.g., ElementA.Accept calls visitor.VisitElementA(this)), implementing double dispatch — Accept dispatches on element type, then the Visit call dispatches on visitor type.","truth_value":"IN","source":"entries/2026/06/17/gof-oo-chunk-21.md","source_url":"","source_hash":"","justifications":[],"dependents":["visitor-double-dispatch-mechanism"],"metadata":{"last_premise_reviewed":"2026-06-17T18:19:22","premise_review_result":"misread_source","repair_action":"rewritten"},"created_at":"2026-06-17T17:04:08+00:00","updated_at":"2026-06-17T22:52:59+00:00","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"gof-visitor-double-dispatch-via-accept","truth_value":"IN","reason":"premise"}]}}