Alyaa Talaatalyaatalaat28.hashnode.dev·Oct 19, 2024State Pattern – Head First ApproachThe State Pattern is a behavioral design pattern that allows an object to change its behavior when its internal state changes. It appears as though the object is modifying its class by transitioning between different states. What is the State Patter...state-design-pattern
Pedro Rojasswiftandtips.com·May 17, 2024State Pattern in Swift: Going Beyond ConditionalsHi everyone, in this article, I want to start a new series about design patterns in Swift. This first article will cover the State Pattern, explaining the problem it solves and how to implement it in our code. Let's get started! What is the problem? ...1.6K readsstate-design-pattern
Chetan Dattachetan77.hashnode.dev·Nov 11, 2023State Design PatternIntroduction This pattern is primarily used for vending machines and in specific areas where a particular state has a defined set of allowed operations. In these areas, the state design pattern is also employed. Now, let's jump directly into the desi...Low Level Designdesign patterns
Aditya Chaudhariwww.adityatechinsights.com·Apr 16, 2023State Design Pattern - Java - ExplainedIntent Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.It's a behavioral design pattern which is also known as "Objects for a state" Motivation behind the pattern/problem it solves? Th...53 readsdesign pattern java
Dulitha Rajapakshadulitharajapaksha.com·Dec 27, 2022State Design PatternThe Story Hey everyone. I am back with another design pattern. If you are new to the blog and willing to learn design patterns, you can find the explained design patterns in this series. Have you heard about Banana Man? Of course not. That is a chara...47 readsDesign Patterns 101state-design-pattern
Anshul Kumaranshul007.hashnode.dev·Nov 1, 2022Design Pattern in Java - Part 2, State Design PatternIt is one of the behavioral design pattern. This pattern can be used when we have different state of an object. With the help of this pattern we can decide the action of object in a particular state. We can decide the object's behaviour and block the...36 readsDesign Pattern in Javastate-design-pattern