mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-17 02:14:16 +00:00
Update README.md
Increase clarity
This commit is contained in:
1 parent
08cec0e254
commit
f4fa73cd48
1 file changed
+1
-1
@@ -66,7 +66,7 @@ public class Stew {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Now, we have ImmutableStew class, where its ingredient is protected by StewData class so methods are unable to manipulate the data of the stew.
|
Now, we have ImmutableStew class, where its data is protected by StewData class. Now, the methods in are unable to manipulate the data of the ImmutableStew class.
|
||||||
```
|
```
|
||||||
public class StewData {
|
public class StewData {
|
||||||
private final int numPotatoes;
|
private final int numPotatoes;
|
||||||
|
|||||||
Reference in new issue
Block a user