Design Pattern: State Pattern in PHP

State pattern implements a system where an object is able to change its behavior based on state(one or more properties) of that object. The behavior can change completely or partially. This article demonstrates State pattern implementations in PHP.

Design Pattern: State Pattern in Go

State pattern implements completely different behavior of an object based on some state. This pattern is normally used for heavy processing multiple-step operations. This article demonstrates State pattern implementations in Golang.

Design Pattern: State Pattern in TypeScript

In State pattern implementation, an object behaves differently when on some state change. With the change of state, the behavior can change completely. This article demonstrates State pattern implementations in TypeScript.

Design Pattern: State Pattern

In State pattern, an object (context object) changes its behavior when a certain internal state is changed. On state change the context object will change its behavior completely- like for performing a certain operation the context object will use different objects when the state is changed. This state change is managed internally so the client which is using the context object might not be aware of the state change.

Design Pattern: State Pattern in Java

State pattern is used to change the behavior of an object when the state is changed. With the change in state, the behavior of that object is completely changed. This article demonstrates State pattern implementations in Java.