this statement asks me what kind of design pattern applied , firstly , tell me what to build toys, as they are only 3 types of play, and none is related eg with some color, would apply the factory method .
But apart it tells me that the Toys can be turned off and on , which makes me think that this would be a command pattern ( or state) .
¿ I can mix 2 patterns in a final solution ?
We want to build 3 kinds of toys : Pokemon , Barbie and Superman . They feature animation actions associated with their off and on , these actions are different for each type of toy. Explain what design pattern and would use the class diagram Perform final design .
thanks
Aucun commentaire:
Enregistrer un commentaire