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
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ Structural patterns are concerned with how classes and objects are composed to f
40
40
*[Service Locator](#service-locator)
41
41
*[Servant](#servant)
42
42
*[Event Aggregator](#event-aggregator)
43
+
*[Private Class Data](#private-class-data)
43
44
44
45
### Behavioral Patterns
45
46
@@ -610,6 +611,14 @@ validation and for building to order
610
611
**Applicability:** Use the Thread Pool pattern when
611
612
* You have a large number of short-lived tasks to be executed in parallel
612
613
614
+
## <aname="private-class-data">Private Class Data</a> [↑](#list-of-design-patterns)
615
+
**Intent:** Private Class Data design pattern seeks to reduce exposure of attributes by limiting their visibility. It reduces the number of class attributes by encapsulating them in single Data object.
616
+
617
+

618
+
619
+
**Applicability:** Use the Private Class Data pattern when
620
+
* You want to prevent write access to class data members
0 commit comments