Close
State Design Pattern

State Design Pattern

Introduction State design pattern is a behavioral design pattern, meaning which changes its behaviour based on its object’s internal state. To achieve this each object incorporated the state specific behaviour. Moreover adding new states does not affect the existing states. Lets take a closer look and discuss this in more details. Why do we need…