Can I have multiple class implementing a receiver interface, and then pass all of their references to a command whenever I instantiate one?
I have a hashTable and two BinaryTrees, Some commands access the hashTable and modify BinaryTree1, others access the hashTable and modify BinaryTree2
Is this a bad place to use the command pattern? What other design pattern might be useful?
Aucun commentaire:
Enregistrer un commentaire