State Design Pattern

State Design Pattern is also one of the Behavioral Design Patterns. As per the behavioural design pattern, the state design pattern solves the problems of sharing responsibilities between objects. The aspect behind this pattern is the change of behaviour of the object on the change of state. State design pattern…

Continue reading

Strategy Design Pattern

Strategy Design Pattern is one of the behavioural design patterns. This pattern helps to bring different strategies to the table, which means implementing different strategies for a task For example, payment services have different strategies (options) on e-commerce platforms e.g. credit card, net banking, UPI, pay later, wallets, etc. Some…

Continue reading