The factory pattern is usually classified as part of a family of patterns called "creational patterns" ... they're ways that your code can "create" objects. A common definition of the factory pattern goes like this:
A pattern to define an interface for creating an object where the classes that implement the interface decide which class to instantiate.
If this is less than completely clear to you, try this article: The Factory Design Pattern.
Comments
No comments yet. Leave a Comment
