Category: Creational design pattern

Factory method design pattern

Type: Creational pattern Description: Factory method design pattern allow you to create an object from one place instead of many places. By implementing this design pattern, we are ensuring that we are abstracting the logic of object creation at one place only. Example: Lets take an example of bank application. Consumer of bank application needs … Continue reading Factory method design pattern