Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/amir-shiati/factory-demonstration-java
- Owner: amir-shiati
- Created: 2021-10-07T20:14:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-27T13:30:36.000Z (about 3 years ago)
- Last Synced: 2023-11-08T18:37:31.972Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.