jeudi 3 août 2017

Validity of Observer in Observer Design pattern

While implementing observer Design pattern i have got following doubts

1)How the subject knows that a valid observer is registered with subject.

2)How can we avoid the undefined behaviour/crash that can occur by calling methods(abstract class) on the registered client.

3)Are there any general guidelines(other than NULL value check) or specific design patterns which can help?

Aucun commentaire:

Enregistrer un commentaire