From 61fd1de9d773bd7ef5f05de722360b1883bfd799 Mon Sep 17 00:00:00 2001 From: Jian Han Date: Sat, 13 Jan 2018 22:09:23 +1000 Subject: [PATCH] finish doc for abstract factory --- creational/abstract_factory/main.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 creational/abstract_factory/main.go diff --git a/creational/abstract_factory/main.go b/creational/abstract_factory/main.go new file mode 100644 index 0000000..dbe8f2d --- /dev/null +++ b/creational/abstract_factory/main.go @@ -0,0 +1,11 @@ +package main + +// The abstact factory pattern is a new layer of grouping to achieve a bigger composit object. +// Which is used through it's interface. The idea behind grouping objects in families and grouping families is to have +// big factory that can be interchangable and can grow more easily. + +// NOTICE: you will not likely to apply abstract factory from begining unless you know your object inventory for a specific +// field is going to be large. + +// Objectives: Grouping related families of objects is very convenient when your object number is growing so much that +// creating a unique point to get them all seems the only way to gain the flexible of runtime object creation.