/Observer-Design-Pattern

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

Primary LanguageJava

Observer Design Pattern

The repostiroy contains an implementation of the observer design pattern. The implementation has been done in the context of a Library Management System. The observers are basically the members of the library who are interested in getting a book on loan. When the requested book is available, they are notified using the observer design pattern.

Directory Structure

📦Observer-Design-Pattern
 ┣ 📂src
 ┃ ┗ 📂ObserverPattern
 ┃ ┃ ┣ 📜Book.java
 ┃ ┃ ┣ 📜Main.java
 ┃ ┃ ┣ 📜Member.java
 ┃ ┃ ┣ 📜Observer.java
 ┃ ┃ ┗ 📜Subject.java
 ┣ 📜.gitignore
 ┣ 📜ObserverPattern.iml
 ┗ 📜README.md