Behavioral pattern จัดการเรื่องวิธีที่อ็อบเจ็กต์โต้ตอบและสื่อสารกัน คือการมอบหมายความรับผิดชอบและการไหลของการสื่อสารระหว่างอ็อบเจ็กต์ ซึ่งรวมถึง Observer, Strategy, Command, Iterator, State, Template Method และอื่น ๆ
Behavioral pattern ตอบโจทย์อะไร
BEHAVIORAL patterns concern how objects INTERACT, communicate, and distribute
responsibilities:
→ how objects collaborate and assign responsibilities to achieve behavior
→ manage algorithms, communication, and control flow between objects
→ about BEHAVIOR and interaction, not creation or structure
