• Home
  • Docker
  • Kubernetes
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • CI
  • Install
  • Samples
  • Archived
Design Patterns | Abstract Factory
  1. References
  2. Example
    • The Abstract Product (A)
    • The Concrete Product (A1)
    • The Concrete Product (A2)
    • The Abstract Product (B)
    • The Concrete Product (B1)
    • The Concrete Product (B2)
    • The Abstract Factory
    • The Concrete Factory (A)
    • The Concrete Factory (B)
    • The Factory Method (optional)
    • A simple class to test the Abstract Factory design pattern

  1. References
    • Definition: (source: http://en.wikipedia.org/wiki/Abstract_factory_pattern)

      The essence of the Abstract Factory Pattern is to "Provide an interface for creating families of related or dependent objects without specifying their concrete classes."

    • Class diagram: (source: http://en.wikipedia.org/wiki/Abstract_factory_pattern)

      Abstract Factory Pattern
  2. Example
    • The Abstract Product (A):


    • The Concrete Product (A1):


    • The Concrete Product (A2):


    • The Abstract Product (B):


    • The Concrete Product (B1):


    • The Concrete Product (B2):


    • The Abstract Factory:


    • The Concrete Factory (A):


    • The Concrete Factory (B):


    • The Factory Method (optional):


    • A simple class to test the Abstract Factory design pattern:


© 2025  mtitek