Some of the most common Behavioral Patterns are:
a) Iterator -This design pattern is used to access elements of a collection sequentially hiding the internal implementation.
b) Chain of Responsibilities – This design pattern is used where a chain of objects is used to handle the responsibilities. In this design pattern, a request to process the client call is only passed to the next object when the first object fails to process the same.
c) Observer – It is used where a one-to-many relationship exists among the objects and modifying a single object can impact the dependent objects.
d) Mediator -This design pattern encapsulates the communication complexity takes place between different objects and acts as an intermediary between the objects for communication.
Posted Date:- 2021-09-06 22:32:27