mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 12:59:54 +00:00
+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