
Design Patterns
Behavioral – State Design Pattern
State pattern is one of the behavioral design patterns that used when an object changes its behavior based on its internal state. Suppose you want to change behavior of an object based on its state. For that we can have a state variable in the object and use if-else condition block to perform different actions […]
August 16, 2020