Skip to content

Commit 7e4d0b4

Browse files
dgruntziluwatar
authored andcommitted
Changes aggregation to composition (as described in issue iluwatar#1095) (iluwatar#1096)
1 parent 8037495 commit 7e4d0b4

File tree

1 file changed

+1
-1
lines changed
  • decorator/src/main/java/com/iluwatar/decorator

1 file changed

+1
-1
lines changed

decorator/src/main/java/com/iluwatar/decorator/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
/**
3030
* The Decorator pattern is a more flexible alternative to subclassing. The Decorator class
31-
* implements the same interface as the target and uses aggregation to "decorate" calls to the
31+
* implements the same interface as the target and uses composition to "decorate" calls to the
3232
* target. Using the Decorator pattern it is possible to change the behavior of the class during
3333
* runtime.
3434
*

0 commit comments

Comments
 (0)