Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Abstract factory and Bridge Patterns Together

 
ismail h
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

I'am new to this forum ,and i'am currently preparing for the part1 of the scea certification,and trying to get some knowledge about the Gof Design patterns,by reading the Gof book i found this An Abstract Factory can create and configure a particular Bridge.
Does anyone have an idea how this can be done?

Thanks a lot
Ismail
 
Santiago Urrizola
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fell free.. you can yous as many patterns together as you want ... and for you want... only condition is to understand what is the objective of each pattern
 
Cleuton Sampaio
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using the bridge pattern you can separate the abstraction and implementation. You should have two class hierarchies, one for the abstraction and other for the implementation.

Sure you can use abstract factory to create the implementation classes, but you will use the abstraction classes to access them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic