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: DesignPatterns/AppleStoreVisitor/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@
24
24
25
25
- Discount percentages can vary at any point, and additional discount types may be added in the future.
26
26
27
-
- We would like a solution that avoids modifying the product objects directly every time a new discount type is added, or the discount percentage changes.
27
+
- We would like to avoid the problem of modifying the product objects directly every time a new discount type is added, or the discount percentage changes.
28
28
29
29
- The visitor pattern will allow us to separate discount types, and vary their discount percentages, without modifying the product classes, satifying the open/closed principle.
0 commit comments