• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
October 26, 2022 |2.8K Views
Factory Method Design in Java
  Share   Like
Description
Discussion

Design patterns are solutions to commonly recurring problems. Design patterns are classified into Creational, Structural, and Behavioural types
Factory Method Design Pattern is a creational design pattern that means it deals with the creation of objects. It says that, define an interface for creating the object and let the subclasses decide which class to instantiate. 

Steps to implement Factory Method Design Pattern

1. Create an interface having an abstract method
2. Create implementation classes
3. Create a Factory that will decide which imp object will be created.
4. Test in the main method

So in this video, let's look at the detailed explanation of the Factory Method Design Pattern in Java.

Factory Method Design Pattern: https://www.geeksforgeeks.org/design-patterns-set-2-factory-method/