The repository contains an implementation of the State Design Pattern. The implementation has been done for a Book object in the context of a Library Management System. The book object can have multiple states. They are:
- Available
- Issued
- Reserved
- Lost
📦State-Design-Pattern ┣ 📂src ┃ ┗ 📂StatePattern ┃ ┃ ┣ 📜Available.java ┃ ┃ ┣ 📜BookContext.java ┃ ┃ ┣ 📜BookState.java ┃ ┃ ┣ 📜Issued.java ┃ ┃ ┣ 📜Main.java ┃ ┃ ┗ 📜Reserved.java ┣ 📜.gitignore ┣ 📜README.md ┗ 📜StatePattern.iml