-2

Could I just said that the abstract factory pattern is just by adding a layer of abstraction above the creational patterns like factory pattern?

Edit: I know that for most of the cases we can use factory pattern to implement the abstract factory pattern. But I think if I use some other creational pattern, that's still, at least I will call it, a abstract factory pattern.

NeoZoom.lua
  • 2,269
  • 4
  • 30
  • 64

1 Answers1

1

Abstract Factory is collection of the Factory Methods.

examples from real life:
Factory Method - plasticine/mold
Abstract Factory - cards factory

dstar55
  • 938
  • 6
  • 11