lundi 25 février 2019

Multiple Receivers in a command's execute method in command pattern

I have a command which is implementing the Execute() method defined in ICommand interface.I need to call the actions which are defined in multiple receivers,How do we instantiate multiple receiver objects in the Execute() method?.Can we use multiple receivers in a single Command object?

Aucun commentaire:

Enregistrer un commentaire