Skip to content
devhub.
ExploreCompareSaved
Sign in
DevHubBuilt for curious developers. Data from GitHub.
Back to repositories
Public repository / Design-pattrns

Factory-Pattern

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

View on GitHub
0Stars
0Forks
0Open issues
1Subscribers

Language distribution

Share of source bytes reported by GitHub

Java95%
HTML5%

Recent activity

Latest commits on the default branch

testmohamedebrahim96 · Dec 3, 2018Update README.mdmohamedebrahim96 · Dec 3, 2018some changesmohamedebrahim96 · Dec 3, 2018fist commitmohamedebrahim96 · Dec 3, 2018Initial commitmohamedebrahim96 · Dec 3, 2018

Project details

Created Dec 2018 Updated Dec 2018
designdesign-patternsdesign-systemexamplefactoryfactory-patternjava

Contributors

1
mohamedebrahim96's avatarmohamedebrahim965 commits