Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 636 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 636 Bytes

State Design Pattern

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

Directory Structure

📦State-Design-Pattern
 ┣ 📂src
 ┃ ┗ 📂StatePattern
 ┃ ┃ ┣ 📜Available.java
 ┃ ┃ ┣ 📜BookContext.java
 ┃ ┃ ┣ 📜BookState.java
 ┃ ┃ ┣ 📜Issued.java
 ┃ ┃ ┣ 📜Main.java
 ┃ ┃ ┗ 📜Reserved.java
 ┣ 📜.gitignore
 ┣ 📜README.md
 ┗ 📜StatePattern.iml