Return to site

Abstract factory design pattern c

broken image
broken image

It is about an e-commerce website for buying lawnmowers. The problem domain that we are going to discuss is the same as the last blog post. In my previous blog post, we solved the creation of a product catalog based on the type, which is coming from the caller of the service through the factory method design pattern. So it is kind of another layer of abstraction on top of the factory method design pattern. The main intent of the abstract factory design pattern is to allow abstraction over other factory classes. And it is also part of the Gang of Four design patterns. The Abstract Factory design pattern is also a creational design pattern just like the factory method. Abstract factory pattern is a very good pattern to discuss after we discussed the factory method design pattern in my previous blog. In this blog post, I am going to walk through the Abstract Factory design pattern.

broken image