Skip to content

Commit b1351aa

Browse files
committed
Section 17 Packages
Signed-off-by: https://github.com/Someshdiwan <[email protected]>
1 parent 20784ce commit b1351aa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Section17Packages/src/Packages.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ It helps in **organizing code**, **avoiding name conflicts**, and **controlling
1010
## How to Create a Package
1111

1212
```java
13-
// File: MyClass.java
1413
package mypack;
1514

1615
public class MyClass {
@@ -29,7 +28,7 @@ Run with:
2928
java mypack.MyClass
3029

3130
Benefits
32-
• Better code organization
33-
• Reusability of classes
34-
• Encapsulation and access control
35-
• Avoids class name collisions
31+
• Better code organization
32+
• Reusability of classes
33+
• Encapsulation and access control
34+
• Avoids class name collisions

0 commit comments

Comments
 (0)