Java Design Pattern: Abstract Factory
Abstract Factory pattern adds another layer of abstraction for Factory pattern. If we compare Abstract Factory with Factory, it is pretty obvious that a new layer of abstraction is added. Abstract Factory is a super-factory which creates other factories. We can call it “Factory of factories”. Abstract Factory class diagram Abstract Factory Java code interface … Read more