SOFTWARE ENGINEERING

SOFTWARE DESIGN

DESIGN PATTERNS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ 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.
A
State
B
Command
C
Mediator
D
Observer
Explanation: 

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.

There is 1 question to complete.