Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Factory method and Strategy pattern  RSS feed

 
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,
 
lowercase baba
Bartender
Posts: 12613
50
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!