Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Factory method and Strategy pattern

 
reham saud
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have question about how to combine the factory method and strategy design patterns together.
this is what I have reach to, but I'm not sure of it.


Thank you,
 
fred rosenberger
lowercase baba
Bartender
Posts: 12202
35
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generally, it helps if you ask a specific question. All I see here is "I need to do X" and a bunch of code.

Nobody has any idea what SPECIFIC help you need.
 
reham saud
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for that, what I need help in that I'm trying to combine the two patterns together. Strategy and factory method. And I'm not quite sure from what I have done. Is the code I posted is correct way to apply strategy and factory method together.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic