in Design Patterns by
Q:

Q. What is State pattern?

1 Answer

0 votes
by

Ans:- 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.

image
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked Aug 12, 2020 in Design Patterns by RShastri
0 votes
0 votes
asked Aug 12, 2020 in Design Patterns by RShastri
0 votes
asked Oct 17, 2019 in Design Patterns by Robin
0 votes
asked Oct 17, 2019 in Design Patterns by Robin
0 votes
asked Oct 17, 2019 in Design Patterns by Robin
...