• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Design Patterns by
What is the difference between factory and abstract factory design pattern?

1 Answer

0 votes

Both factory and abstract factory are creational design patterns. The major difference between these two is, a factory pattern creates an object through inheritance and produces only one Product. On the other hand, an abstract factory pattern creates the object through composition and produce families of products.

Related questions

0 votes
asked Aug 12, 2020 in Design Patterns by RShastri
0 votes
asked Oct 17, 2019 in Design Patterns by Robin