Which design principle does the observer pattern follow?

In general, the most relevant SOLID principle related to Observer is the Open/Close Principle : Once you have written the code of the observed object, you need not change the code when you want additional observers to know it, yet it is easy to add such observers – this is exactly what “closed for modifications, open …

Sizin İçin Seçtik  How do you use state design patterns?

Leave a Reply

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