You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains Java programs demonstrating **Object-Oriented Programming (OOP)** concepts such as encapsulation, constructors, inheritance, and class design.
4
-
It includes four tasks (1.1 to 1.4), each implemented using separate Java classes.
3
+
This repository contains Java programs demonstrating fundamental Object-Oriented Programming (OOP) concepts such as encapsulation, inheritance, and basic class design. It includes four tasks (1.1 to 1.4), each illustrating a different OOP principle.
5
4
6
5
---
7
6
8
7
## 📁 Project Structure
9
8
10
9
```
11
-
10
+
src/
12
11
├── Account.java
13
12
├── Person.java
14
13
├── Person_2.java
@@ -19,97 +18,79 @@ It includes four tasks (1.1 to 1.4), each implemented using separate Java classe
19
18
│ ├── 1.2.a.png
20
19
│ ├── 1.2.b.png
21
20
│ ├── 1.3.png
22
-
│ ├── 1.4.png
21
+
│ └── 1.4.png
23
22
└── README.md
23
+
└── LICENSE
24
24
```
25
25
26
26
---
27
27
28
-
## 📘 Task Overview
28
+
## 📝 Tasks Overview
29
29
30
-
### **🧩 Task 1.1 — Person Class**
31
-
- Implements a `Person` class with:
32
-
-`name`, `age`
33
-
- Constructor + Display method
34
-
- Default age = 18.
30
+
### **Task 1.1 – Person Class**
31
+
- Implements a `Person` class with `name` and `age`.
0 commit comments