Monday, November 26, 2012

Design Pattern - Factory Pattern

You might also like seeing Observer Pattern, Strategy Pattern and Decorator Pattern


The next Pattern is the Factory Design Pattern. This pattern is often confused with the Simple Factory.
The difference is that in the Factory Design Pattern it is the subclass that controls instantiation of the object.

An everyday example of  Factory Pattern is the Java Collections iterator. Depending on the sub-class we get different types of iterators that shares a common interface.

One Slider? Coming up




0 comments:

Post a Comment

Leave a thought, always good to hear :)