When should observer pattern be used?

Observer pattern is used when there is one-to-many relationship between objects such as if one object is modified, its depenedent objects are to be notified automatically. Observer pattern falls under behavioral pattern category.

Sizin İçin Seçtik  Which country owns crypto?

Leave a Reply

Your email address will not be published. Required fields are marked *