State 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” […]

Share this article on

Command pattern

Command Pattern is one of the Behavioural Design Patterns. The main key of this pattern is command interface This command interface provides abstract “execute” method. Each concrete command class provides different implementations of execute method. Command pattern decouples the object which invokes the operation from the one which knows how to perform it. In this […]

Share this article on
< Previous