Skip to content
#

factory

Here are 103 public repositories matching this topic...

Factory design pattern is used when we have a super class with multiple sub-classes and based on input, we need to return one of the sub-class. This pattern take out the responsibility of instantiation of a class from client program to the factory class. We can apply Singleton pattern on Factory class or make the factory method static

  • Updated Dec 3, 2018
  • Java

Improve this page

Add a description, image, and links to the factory topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the factory topic, visit your repo's landing page and select "manage topics."

Learn more