• Post Reply Bookmark Topic Watch Topic
  • New Topic

Buinder Pattern Example

 
luis meira
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends
i'm currently studying for part i and i'm having a certantain dificulty visualizing some of the design patterns.
by any chance you know any good tutorial of design patterns ?
can someone post a java example on the builder Pattern ?
best regards
luis meira
 
Nishant Anshul
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey , found this unannswered...Luis, IMO the best book avlbl for design patterns is by eric gamma ...
buddy u can find many good examples in books for builder pattern...but okay if u want one here, let me say this way. Builder pattern provide u more ctrl over the creation process and second, the same process may result in diff products...so take for example, poblem is to build a colour palette which can create various pallette objects depending upon varying PROPORTIONS of color(RGB) classes used. Hope u got the lead and implement similar scenarios.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!