In state mode, how to avoid the problem of class inflation?

when reading the design pattern of the Zen state pattern of the design pattern, why do you mention that the disadvantage of the state pattern is that there are too many subclasses, which will cause class expansion? is there any way to solve this problem?
the author also mentioned setting up a state table in the database. What is the specific idea?

Apr.02,2021
Menu