Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amir-shiati/factory-demonstration-java

Java factory design pattern demonstration.
https://github.com/amir-shiati/factory-demonstration-java

Last synced: 6 days ago
JSON representation

Java factory design pattern demonstration.

Awesome Lists containing this project

README

        

# Factory

The **factory** design pattern is used when we have a superclass with multiple sub-classes and based on input, we need to return one of the sub-class. This pattern takes out the responsibility of the instantiation of a class from the client program to the factory class.