dimanche 2 août 2015

How strategy design pattern represents combination between objects

We know that strategy design pattern falls under behavioural design pattern which are categorized by the fact that they represent some sort of object relationships. Can anybody explain in strategy how object relationship is maintained and between whom. We create a context which holds the different implementations and client will choose one of them at runtime and can change also in another scenario. But how object relationship is maintained here and what are those two objects.

Aucun commentaire:

Enregistrer un commentaire