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

Abstract-Factory-Pattern

In the Abstract Factory pattern, we get rid of if-else block and have a factory class for each sub-class. Then an Abstract Factory class that will return the sub-class based on the input factory class. At first, it seems confusing but once you see the implementation, it’s really easy to grasp and understand the minor difference between Factory and Abstract Factory pattern.

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

Language distribution

Share of source bytes reported by GitHub

Java97%
HTML3%

Recent activity

Latest commits on the default branch

Update README.mdmohamedebrahim96 · Dec 4, 2018add imagemohamedebrahim96 · Dec 4, 2018Update README.mdmohamedebrahim96 · Dec 4, 2018testmohamedebrahim96 · Dec 4, 2018frist commitmohamedebrahim96 · Dec 4, 2018Initial commitmohamedebrahim96 · Dec 4, 2018

Project details

Created Dec 2018 Updated Dec 2018
abstractdesigndesign-patternsdesignpafactorypatterns

Contributors

1
mohamedebrahim96's avatarmohamedebrahim966 commits