What are the three mechanisms of the Observer pattern?

Subject in the Observer pattern has three tasks: i) Provide methods to register and remove observer. ii) Maintains a list of its observers/subscribers. iii) And notify them automatically when any state changes .

Sizin İçin Seçtik  How are observer and observable used?

Leave a Reply

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