How to choose a design pattern
In general terms, a design pattern is a solution to a frequently occurring problem. This means that if you know the problem, then you can decide on which design pattern is correct. Here is a list of design patterns and the problems that they solve. CREATIONAL PATTERNS The builder pattern solves the problem of a…