2010-03-02

Abstract Factory Design Pattern

    Introduction:
    Sometimes you want to create an instance of class that is related to a family of classes without specifying the exact concert class. Factory design pattern came to solve this issue and make it easy for us.
    In order to avoid duplicating the code that make the decision everywhere an instance is created, we need a mechanism for creating instances of related classes without necessarily knowing which will be instantiated.
    There are 2 types of Factory Design Pattern:
     

No comments: