instance factory methods Vs Static factory methods
Can't all factory methods be static ? Does something that produces a product need state ? When is it appropriate to go for a instance factory or static factory method ? Can you provide me examples differentiating the two ? Ramon Chiara Assuming that by "instance factory method" you're actually saying about the GoF "factory method", the term "static factory method" is described by Joshua Bloch in his book "Effective Java". Googling around I reached at these sites: Factory Method: http://sourcemaking.com/design_patterns/factory_method Static Factory Method: http://www.informit.com/articles