SOFTWARE DESIGN
DESIGN PATTERNS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
State
|
|
Command
|
|
Mediator
|
|
Observer
|
Detailed explanation-1: -Intent. State is a behavioral design pattern that lets an object alter its behavior when its internal state changes. It appears as if the object changed its class.
Detailed explanation-2: -Behavioral patterns are concerned with algorithms and the assignment of responsibilities between objects. Behavioral patterns describe not just patterns of objects or classes but also the patterns of communication between them. These patterns characterize complex control flow that’s difficult to follow at run-time.
Detailed explanation-3: -Behavioral design patterns are concerned with the interaction and responsibility of objects. In these design patterns, the interaction between the objects should be in such a way that they can easily talk to each other and still should be loosely coupled.