strategy pattern instead of switch

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

Hi,
I read somewhere recently that the strategy pattern could be used
instead of using switch command on an enum (for example). How would
this work? A small example would be great.

Thanks,
Nick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top