Some Behavioral Patterns
Visitor: Abstracts operations on a data structure and to avoid making changes to existing data structures. Allows new operations to be added without changing data structures
Strategy: Abstracts similar algorithms so that it can be interchanged without affecting the data structure. Used to eliminate switch-case statements
Iterator: Provides a unified mechanism to traverse data structures without encapsulating the traversal logic
Visitor: Abstracts operations on a data structure and to avoid making changes to existing data structures. Allows new operations to be added without changing data structures
Strategy: Abstracts similar algorithms so that it can be interchanged without affecting the data structure. Used to eliminate switch-case statements
Iterator: Provides a unified mechanism to traverse data structures without encapsulating the traversal logic
Comments