Abstract Factory Design Pattern
Factory of factories. To keep things simple you can understand it like, you have a set of ‘related’ factory method design pattern . Then you will put all those set of simple factories inside a factory pattern. So in turn you need not be aware of the final concrete class that will be instantiated. You can program for the interface using the top factory. There is also a view that abstract factory is ‘also’ implemented using prototype instead of factory methords pattern. Beginners for now please don’t yourself with that. Just go with factory methods pattern. As there is a word ‘abstract’ in the pattern name don’t mistake and confuse it with java ‘abstract’ keyword. It is not related to that. This abstract is from object oriented programming paradim. Sample abstract factory design pattern implementation in Java API XML API implements abstract factory. There is a class name SchemaFactory . This acts as a factory and supports implemenation of multiple schemas using abstract ...