mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 07:13:02 +00:00
1 parent
10fb952d85
commit
8c3cc7df62
1 file changed
+2
-1
+2
-1
@@ -35,7 +35,8 @@ Wikipedia says
|
||||
> be added to an individual object, either statically or dynamically, without affecting the behavior
|
||||
> of other objects from the same class. The decorator pattern is often useful for adhering to the
|
||||
> Single Responsibility Principle, as it allows functionality to be divided between classes with
|
||||
> unique areas of concern.
|
||||
> unique areas of concern as well as to the Open-Closed Principle, by allowing the functionality
|
||||
> of a class to be extended without being modified.
|
||||
|
||||
**Programmatic Example**
|
||||
|
||||
|
||||
Reference in new issue
Block a user