I need a sample code that visitor design pattern works with Strategy design pattern. In my code I have a switch command that I replaced with Strategy design pattern but as each strategy has different return type I don't know how to manage it. Some people suggested to combine strategy pattern with visitor pattern but I don't know how.
Aucun commentaire:
Enregistrer un commentaire