DEV Community

Cover image for Abstract Factory Pattern | Design Patterns in Java
coder4life
coder4life

Posted on

Abstract Factory Pattern | Design Patterns in Java

Java implementation of the Abstract Factory Pattern which basically is a factory class structure for returning other factories. In this example the "Regular Shape" and the "Rounded Shape" represent separate object structures with their own factory class. The "FactoryCreator" is the abstract factory since it returns either a rounded-shape-factory or a regular-shape-factory.

Top comments (0)