Skip to content

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.

Notifications You must be signed in to change notification settings

mehboobali98/Observer-Design-Pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
 

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published