Abstract Factory Pattern: Jiaxin Wang CSPP 51023 Winter 2010
Abstract Factory Pattern: Jiaxin Wang CSPP 51023 Winter 2010
Jiaxin Wang
CSPP 51023
Winter 2010
Intent
Fact:
This client will be compile-time independent of the
concrete implementation if, and only if, it does not
directly create an instance of the concrete class
Sample sampleA=Factory.creator(1);
Implementation example