Behavioral patterns ਇਸ ਨਾਲ ਸੰਬੰਧਤ ਹੁੰਦੇ ਹਨ ਕਿ objects ਕਿਵੇਂ ਇਕ ਦੂਜੇ ਨਾਲ ਸੰਪਰਕ ਅਤੇ ਸਾਂਝੇ ਕੰਮ ਕਰਦੇ ਹਨ — ਜ਼ਿੰਮੇਵਾਰੀਆਂ ਦੀ ਵੰਡ ਅਤੇ objects ਵਿਚ ਸੰਚਾਰ ਦਾ ਵਹਾਓ। ਇਹਨਾਂ ਵਿੱਚ Observer, Strategy, Command, Iterator, State, Template Method, ਅਤੇ ਹੋਰ ਸ਼ਾਮਲ ਹਨ।
ਆਚਰਣ ਸੰਬੰਧੀ patterns ਕਿਹੜੀਆਂ ਚੀਜ਼ਾਂ ਨੂੰ ਹੱਲ ਕਰਦੇ ਹਨ
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
