The Factory Pattern

In continuation of my previous blogs on Design Patterns we come to the Factory pattern. As a quick reminder design patterns are solutions created for commonly found problems. The Factory pattern is a creational pattern meaning that it is a best practice for how to create an object. Let’s check it out.

The factory pattern objective is extensibility, expandable. It is often used in applications that manage, maintain, or manipulate collections of object that are different but also have many similar characteristics, i.e. methods, properties, modules. …

Demetrio Lima

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store