Tag Archives: gof

Factory Method Pattern

According to Gang of Four: Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.  According to Wikipedia “The factory method pattern uses factory methods to deal with creating objects without specifying the exact class of object that will be created. This is done… Read More »

Abstract Factory Pattern

Definition: According to Gang of Four “Provide an interface for creating families of related or dependent objects without specifying their concrete classes” According to Wikipedia “The abstract factory pattern provides a way to encapsulate a group of individual factories that have a common theme without specifying their concrete classes” So we can simplify Abstract Factory Pattern as follows: Abstract… Read More »

Gentle Introduction of GOF Design Patterns (Part – 01)

According Christopher Alexander “Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without ever doing it the same way twice” We can simplify design pattern… Read More »