Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 293 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 293 Bytes

Simple Factory

Purpose

ConcreteFactory is a simple factory pattern.

It differs from the static factory because it is NOT static and as you know: static => global => evil!

Therefore, you can haZ multiple factories, differently parametrized, you can subclass it and you can mock-up it.