0
What is state pattern?

Open 1 Answers 28 Views Education

What is state pattern?

1 Answer

0
What is state pattern?

In State pattern a class behavior changes based on its state. This type of design pattern comes under behavior pattern. In State pattern, we create objects which represent various states and a context object whose behavior varies as its state object changes.
by (54.6k points)
...