|Lesson 4|| Common behavioral patterns|
|Objective||Describe the Common Behavioral Patterns.|
Describe Common Behavioral Patterns known
There are many popular behavioral design patterns which you will encounter while writing code or developing software.
The SlideShow below briefly describes seven common behavioral patterns:
The same patterns displayed in the above Slide Show are described once again below.
- The Chain of Responsibility allows an even further decoupling between classes, by passing a request between classes until it is recognized.
- The Command pattern provides a simple way to separate execution of a command from the interface environment that produced it, and
- The Iterator pattern formalizes the way we move through a list of data within a class.
- The Mediator defines how communication between classes can be simplified by using another class to keep all classes from having to know about each other.
- The Observer pattern defines the way a number of classes can be notified of a change,
- The Strategy pattern encapsulates an algorithm inside a class,
- The Visitor pattern adds function to a class,
Common Behavioral Patterns - Quiz