Commit ecdd5ce
committed
Getter and setter methods are primarily used
to enforce encapsulation in Java.
Signed-off-by: Someshdiwan <[email protected]>1 parent 04e59e2 commit ecdd5ce
File tree
1 file changed
+10
-1
lines changed- Section11ObjectOrientedProgramming/src
1 file changed
+10
-1
lines changedLines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments