From the course: Python: Design Patterns
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Chain of Responsibility - Python Tutorial
From the course: Python: Design Patterns
Chain of Responsibility
“
- [Instructor] The strategy pattern offers a family of interchangeable algorithms to a client. The problem we often see is that there is a need for dynamically changing the behavior of an object. We offer our strategy class with its default behavior. When there is a need, we provide another variation of the strategy class by dynamically replacing its default method with a new one. Python allows adding methods dynamically by importing the types module.
Contents
-
-
-
-
-
- (Locked) Observer1m 5s
- (Locked) Observer example6m 22s
- (Locked) Solution: Observer2m 4s
- (Locked) Visitor56s
- (Locked) Visitor Example6m 42s
- (Locked) Iterator1m 15s
- (Locked) Iterator example4m 32s
- (Locked) Strategy40s
- (Locked) Strategy Example5m 44s
- (Locked) Solution: Strategy4m 16s
- (Locked) Chain of Responsibility40s
- (Locked) Chain of Responsibility example5m 57s
- (Locked)
-
-