• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Java Design Pattern

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am started reading the Java Design pattern book by Cooper. I am not able to differentiate the patterns. For example the difference between Factory pattern and abstract factory pattern & Builder pattern.
Why do we need one interface extra for this abstract factory pattern.
For example in this book they have considered the same example for this two pattern. (Accessing the data using database , nmay be local or remote).
1. In the factory pattern they are using getRemoteConnection() and getLocalConnection() in two separate interfaces local and remote
2. In the abstract factory pattern they have created a wrapper interface for this two methods.
Can you please explain.
Regards,
M.S.Raman
 
reply
    Bookmark Topic Watch Topic
  • New Topic