0 votes
in Education by (55.6k points)

What is state pattern?

1 Answer

0 votes
by (55.6k points)
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.
...