Skip to content

vaibhav-rm/Day-3-Elevate-Labs-Internship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š Library Management System (OOP) - Java

This project is a simple Library Management System developed using Object-Oriented Programming (OOP) in Java as part of Day 3 of the Java Developer Internship at Elevate Labs.


πŸ—“οΈ Task 3 - Objectives

  • Practice OOP concepts: Abstraction, Inheritance, Polymorphism, Encapsulation
  • Implement a system to manage books and users
  • Features: Add books, issue and return books
  • Toolchain: Java, VS Code, Terminal

πŸ“¦ Classes Implemented

πŸ”Ή Book

  • Fields: ID, Title, Issue Status
  • Methods: issue(), returnBook(), isIssued()

πŸ”Ή User

  • Fields: userId, name

πŸ”Ή Library

  • Manages a list of books
  • Methods: addBook(), showBooks(), issueBook(), returnBook()

πŸ§ͺ Sample Output

Welcome to Library Management System

1. View Books

2. Issue Book

3. Return Book

Exit
Choose an option: 1
1 - The Alchemist (Available)
2 - Java Programming (Available)
3 - Data Structures (Available)

Choose an option: 2
Enter Book ID to issue: 2
βœ… Book issued successfully.

Choose an option: 1
1 - The Alchemist (Available)
2 - Java Programming (Issued)
3 - Data Structures (Available)

πŸ“‚ How to Run

javac Main.java Book.java Library.java User.java
java Main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages