Skip to content

Commit ba7099a

Browse files
Update README.md
1 parent 1c33ba0 commit ba7099a

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

README.md

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
# Java OOP Interfaces & Abstraction
1+
# Java OOP Interfaces, Abstraction & Class Relationships
2+
3+
![Language](https://img.shields.io/badge/Language-Java-orange?style=flat-square)
4+
![OOP](https://img.shields.io/badge/Concepts-OOP-blue?style=flat-square)
5+
![License](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)
26

37
This repository contains Java programs demonstrating essential Object-Oriented Programming (OOP) concepts such as **encapsulation, abstraction, interfaces, and class relationships**. The project is organized into **two major tasks**:
48

5-
1. **Library Management System**
6-
2. **Taxable Interface Implementation**
9+
1. **Library Management System**
10+
2. **Taxable Interface Implementation**
711

812
---
913

@@ -17,6 +21,7 @@ This repository contains Java programs demonstrating essential Object-Oriented P
1721
├── Employee.java
1822
├── Product.java
1923
├── Main.java
24+
2025
├── 1.a.png
2126
├── 1.b.png
2227
├── 1.c.png
@@ -25,16 +30,16 @@ This repository contains Java programs demonstrating essential Object-Oriented P
2530
```
2631

2732
### File Overview
28-
- **Book.java** – Defines the `Book` class with attributes `bookID`, `title`, `author`, and `isAvailable`.
29-
- **Library.java** – Manages an array of `Book` objects; methods to add, remove, search, and display.
30-
- **Taxable.java** – Interface defining constants `salesTax`, `incomeTax`, and abstract method `calcTax()`.
31-
- **Employee.java** – Implements `Taxable` to compute income tax.
32-
- **Product.java** – Implements `Taxable` to compute sales tax.
33-
- **Main.java** – Driver for tax calculations.
33+
- **Book.java** – Defines the `Book` class with attributes `bookID`, `title`, `author`, and `isAvailable`.
34+
- **Library.java** – Manages an array of `Book` objects; methods to add, remove, search, and display books.
35+
- **Taxable.java** – Interface defining constants `salesTax`, `incomeTax`, and abstract method `calcTax()`.
36+
- **Employee.java** – Implements `Taxable` to compute income tax.
37+
- **Product.java** – Implements `Taxable` to compute sales tax.
38+
- **Main.java** – Driver for tax calculations.
3439

3540
---
3641

37-
## 📚 Task 1 — Library Management System
42+
# 📘 Task 1 — Library Management System
3843

3944
### Book Class
4045
Represents:
@@ -44,40 +49,40 @@ Represents:
4449
- `isAvailable`
4550

4651
### Library Class
47-
Features:
52+
Supports:
4853
✔ Add books
4954
✔ Remove books
50-
✔ Search by `bookID`
51-
✔ Display all books
55+
✔ Search by ID
56+
✔ Display all books
5257

5358
### 📸 Screenshots
5459
![1a](1.a.png)
5560
![1b](1.b.png)
5661
![1c](1.c.png)
57-
![1d](1.d.png)
62+
![1d](1.d.png)
5863

5964
---
6065

61-
## 🧮 Task 2 — Taxable Interface Implementation
66+
# 🧮 Task 2 — Taxable Interface Implementation
6267

6368
### Taxable Interface
6469
Defines:
6570
- `salesTax = 0.07`
6671
- `incomeTax = 0.105`
67-
- `calcTax()` abstract
72+
- Abstract method `calcTax()`
6873

6974
### Employee Class
70-
Computes **income tax** on salary.
75+
Computes **income tax** based on salary.
7176

7277
### Product Class
73-
Computes **sales tax** on product price.
78+
Computes **sales tax** based on price.
7479

7580
### 📸 Screenshot
7681
![Task2](2.png)
7782

7883
---
7984

80-
## ▶️ Running the Programs
85+
# ▶️ Running the Programs
8186

8287
### Clone
8388
```bash
@@ -101,11 +106,11 @@ java Main
101106

102107
---
103108

104-
## Requirements
109+
# Requirements
105110
- Java JDK 8+
106111
- Terminal or IDE
107112

108113
---
109114

110-
## 📝 License
111-
This project is licensed under the MIT License.
115+
# 📝 License
116+
This project is licensed under the **MIT License**.

0 commit comments

Comments
 (0)