Photo by Hello I'm Nik on Unsplash

Photo by Iñaki del Olmo on Unsplash

Photo by Andy Kelly on Unsplash

Photo by Mark Boss on Unsplash

Photo by Jonathan Brinkhorst on Unsplash

A factory method is used to create multiple object types in a single interface.

Why use Factory Method?

In programming, an object is called singleton if it’s only have a single instance to be used in all your logic code.

Wait, what is an instance?

Photo by Med Badr Chemmaoui on Unsplash


Photo by JJ Ying on Unsplash

Ezra Lazuardy

“An idiot admires complexity. A genius admires simplicity.” — Terry A Davis

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