State Pattern
- 9th Jul 2018
- 0
- 21589
- explain state design pattern with example in java how state design pattern works how state design pattern works in java how to implement state design pattern in java State design pattern in java what are the benefits of state design pattern when to use state design pattern
State design pattern is one of the behavioural design patterns. This pattern is used when an Object changes its behaviour based on its internal state. Example : Assume some electronic device is an object which has 2 states called “ON” and “OFF” This object behaves differently when the state changes. When the state is “ON” […]