Monostate Design Pattern explained with simple example
Monostate design pattern is a singleton design pattern variation in which a class will act like a singleton but this class will look like a normal class. This design pattern states that all data member of monostate classes are static but any number of instances can be created in the program.
Before going ahead have a look at Design pattern simplified version and Singleton design pattern.
(more…)