Factory Method
1. Usage “Define an interface for creating an object, but let subclasses decide which class to instantiate. The Factory method lets a class defer instantiation it uses to subclasses.”(Gang Of Four) 2. UML class diagram 3. Pros – client can create objects without specifying subclass types. 4. Cons – hard to refactor existing code. – […]