{"id":1127,"date":"2023-03-29T11:25:18","date_gmt":"2023-03-29T19:25:18","guid":{"rendered":"http:\/\/www.tech.dimprash.com\/?p=1127"},"modified":"2023-03-29T11:25:18","modified_gmt":"2023-03-29T19:25:18","slug":"design-patterns-difference-between-factory-and-abstract-factory-patterns","status":"publish","type":"post","link":"http:\/\/www.tech.dimprash.com\/?p=1127","title":{"rendered":"Design Patterns: Difference between Factory and Abstract Factory Patterns"},"content":{"rendered":"<p>Both the Abstract Factory and Factory design pattern are creational design pattern and use to decouple clients from creating objects they need, But there is a significant difference between Factory and Abstract Factory design patterns, <a href=\"http:\/\/javarevisited.blogspot.it\/2011\/12\/factory-design-pattern-java-example.html\">Factory design pattern<\/a> produces implementation of Products like\u00a0Garment Factory produce different kinds of clothes, On the other hand, Abstract Factory design pattern adds another layer of <a href=\"http:\/\/javarevisited.blogspot.sg\/2010\/10\/abstraction-in-java.html\">abstraction<\/a> over Factory Pattern and Abstract Factory implementation itself like the AbstractFactory will allow you to choose a particular Factory implementation based upon need which will then produce different kinds of products.<\/p>\n<p>In short<\/p>\n<p>1) Abstract Factory design pattern creates Factory<\/p>\n<p>2) Factory design pattern creates Products<\/p>\n<p>Read more: <a href=\"https:\/\/javarevisited.blogspot.com\/2013\/01\/difference-between-factory-and-abstract-factory-design-pattern-java.html#ixzz7xNNgk9lb\">https:\/\/javarevisited.blogspot.com\/2013\/01\/difference-between-factory-and-abstract-factory-design-pattern-java.html#ixzz7xNNgk9lb<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Both the Abstract Factory and Factory design pattern are creational design pattern and use to decouple clients from creating objects they need, But there is a significant difference between Factory and Abstract Factory design patterns, Factory design pattern produces implementation of Products like\u00a0Garment Factory produce different kinds of clothes, On the other hand, Abstract Factory &hellip; <a href=\"http:\/\/www.tech.dimprash.com\/?p=1127\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Design Patterns: Difference between Factory and Abstract Factory Patterns<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1127","post","type-post","status-publish","format-standard","hentry","category-concepts"],"_links":{"self":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/1127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1127"}],"version-history":[{"count":1,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/1127\/revisions"}],"predecessor-version":[{"id":1128,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/1127\/revisions\/1128"}],"wp:attachment":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1127"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}