mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 08:58:49 +00:00
docs: poison pill and private class data diagrams
This commit is contained in:
@@ -33,6 +33,14 @@ Wikipedia says
|
||||
|
||||
> Private class data is a design pattern in computer programming used to encapsulate class attributes and their manipulation.
|
||||
|
||||
Mind map
|
||||
|
||||

|
||||
|
||||
Flowchart
|
||||
|
||||

|
||||
|
||||
## Programmatic Example of Private Class Data Pattern in Java
|
||||
|
||||
Imagine you are cooking a stew for your family dinner. You want to stop your family members from tasting the stew while you're still preparing it. If they do, there might not be enough stew left for dinner.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 85 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 222 KiB |
Reference in New Issue
Block a user