Visitar URL original
Added Factory pattern implementation in Java and its test by abhijay94 · Pull Request #756 · TheAlgorithms/Java · GitHub
The Wayback Machine - https://web.archive.org/web/20201103185756/https://github.com/TheAlgorithms/Java/pull/756
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Factory pattern implementation in Java and its test #756

Merged
merged 7 commits into from May 16, 2019

Conversation

@abhijay94
Copy link
Contributor

@abhijay94 abhijay94 commented May 15, 2019

In class-based programming, the factory method pattern is a creational pattern that uses factory methods to deal with the problem of creating objects without having to specify the exact class of the object that will be created. This is done by creating objects by calling a factory method—either specified in an interface and implemented by child classes, or implemented in a base class and optionally overridden by derived classes—rather than by calling a constructor.

abhijay94 and others added 6 commits May 16, 2019
…Test.java

Co-Authored-By: Libin Yang <contact@yanglibin.info>
…Test.java

Co-Authored-By: Libin Yang <contact@yanglibin.info>
…Test.java

Co-Authored-By: Libin Yang <contact@yanglibin.info>
…Test.java

Co-Authored-By: Libin Yang <contact@yanglibin.info>
…Test.java

Co-Authored-By: Libin Yang <contact@yanglibin.info>
…Test.java

Co-Authored-By: Libin Yang <contact@yanglibin.info>
@yanglbme yanglbme merged commit 21f8200 into TheAlgorithms:Development May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.