-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.

VimNing
  • 1,192
  • 4
  • 20
  • 47

1 Answers1

1

Abstract Factory is collection of the Factory Methods.

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

dstar55
  • 912
  • 6
  • 11