TWZ » Software Engineering


Factory Method and Abstract Factory compared

Factory Method (FM) and Abstract Factory (AF) are two of the main Design Patterns[0]. Both highly correlated, have several traits in common including:

  • The purpose to create objects, which is why FM and AF are classified as creational
  • The design feature of decoupling[1] the client class from implementation of factory classes of products[2]. In this way, the client is freed from knowing how the products are created