Which behavioral design pattern allows an object to alter its behavior when its internal state changes, appearing as if its class changed?
AState Pattern
BStrategy Pattern
CMemento Pattern
DObserver Pattern
Explanation
The State pattern encapsulates state-specific behaviors in distinct classes and delegates calls to the active state object.

No Comments