Factory Patterns. Factory Method Pattern

Snesh Prajapati. CodeProject. 2016-10-02.
In this article we will understand Factory Method Pattern. This article is second part of Factory Patterns article series and is the continuation of Part 1: Simple Factory Pattern.
In this article we will understand Factory Method Pattern. This article is second part of Factory Patterns article series and is the continuation of Part1: Simple Factory Pattern. In first part we have learned Simple Factory Pattern. If you haven’t gone through the first part, I will suggest you to do so then continue with this article.
In first part we have seen how Simple Factory Pattern helps us in object creation and found some issues with Simple Factory Pattern. In this part we will learn how Factory Method Pattern resolves those issues and in which situation we should use Factory Method Pattern.

[Factory Patterns. Factory Method Pattern]

Advertisements

Factory Patterns. Simple Factory Pattern

Snesh Prajapati. CodeProject. 2016-09-25.
In this article series, we will learn about different factory design patterns. There are three kinds of factory design patterns, namely, Simple Factory Pattern, Factory Method Pattern and Abstract Factory Pattern.
In this article series, we will learn about different factory design patterns. There are three kinds of factory design patterns, namely, Simple Factory Pattern, Factory Method Pattern and Abstract Factory Pattern. We will understand these three patterns in detail by learning how to implement, when to implement and subsequently we will understand the differences between those. Simple Factory Pattern is not a part of Gang of Four (GoF) book but Factory Method Pattern and Abstract Factory Patterns are part of this standard book.
To keep the size of articles reasonable, this article series is divided into three parts.

[Factory Patterns. Simple Factory Pattern]