Design patterns – Part 8: State pattern
State pattern is probably most used in review cycles. The definition says: State pattern allows an object to appear as it can change its class by altering its behaviour and state. What are you talking about? Well, imagine you are in need to build a bug tracking database. Bug reports in basics have four states. […]