12
Shouts

Atanas Hristov: Design Patterns – Abstract Factory Pattern - blog about programming.

published 895 days, 17 hours, 40 minutes ago posted by http://atanashristov.blogspot.com/http://atanashristov.blogspot.com/ 896 days, 18 hours, 49 minutes ago
Thursday, December 03, 2009 9:06:40 AM GMT Wednesday, December 02, 2009 7:58:18 AM GMT

Factories are objects that encapsulate the logic for creating other objects.

Factory object could create one or another object based on some configuration parameters. Or the factory could decide what kind of concrete object to create based on a parameter to some object creational method. For example if the method received post-code the factory creates City object and when the parameter is an email address the factory creates Customer object. In that way one might create factory to select one or anoth...

category: Foundation | clicked: 0 | | source: atanashristov.blogspot.com | show counter code
tags: Design Patterns