🚀 Master OOP with Real‑World Java Implementations
This repository demonstrates essential Object‑Oriented Programming (OOP) concepts including
encapsulation, abstraction, interfaces, and class relationships through two real-world tasks:
- Library Management System
- Taxable Interface: Employee & Product Tax Calculation
java-oop-interfaces-abstraction/
│
├── .github/workflows/
│ └── java-build.yml
│
├── screenshots/
│ ├── 1.a.png
│ ├── 1.b.png
│ ├── 1.c.png
│ ├── 1.d.png
│ └── 2.png
│
├── src/
│ ├── Book.java
│ ├── BookManagementSystem.java
│ ├── Employee.java
│ ├── Library.java
│ ├── Main.java
│ ├── Product.java
│ └── Taxable.java
│
├── LICENSE
└── README.md
Represents:
bookIDtitleauthorisAvailable
Provides:
- ➕ Add books
- ➖ Remove books
- 🔍 Search by ID
- 📋 Display all books
| 1.a | 1.b |
|---|---|
![]() |
![]() |
| 1.c | 1.d |
|---|---|
![]() |
![]() |
Defines:
salesTax = 0.07incomeTax = 0.105- Method:
calcTax()
✔ Calculates income tax from salary.
✔ Calculates sales tax from price.
git clone https://github.com/TheComputationalCore/java-oop-interfaces-abstraction.gitcd java-oop-interfaces-abstraction/srcjavac *.javajava Libraryjava Main- Java JDK 8+
- Terminal / Command Prompt / IDE (IntelliJ, VS Code, Eclipse)
Licensed under the MIT License.




