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




1 comment:

  1. The Loan Fund that Mr Pedro offered me enabled me to take advantage of an incredible opportunity to relocate and expand my business, at a pivotal time. The support I received from The staff was priceless at the rate of 2% in return.
    You can contact them for a loan request on pedroloanss@gmail.com And WhatsApp + 1-8632310632

    ReplyDelete

Leave a thought, always good to hear :)