update READMEs

This commit is contained in:
Jakub Vojvoda
2016-09-15 21:14:18 +02:00
parent bb06ec32ca
commit c7712573a0
3 changed files with 23 additions and 2 deletions

11
decorator/README.md Normal file
View File

@@ -0,0 +1,11 @@
## Decorator
Attach additional responsibilities to an object dynamically. Decorators
provide a flexible alternative to subclassing for extending functionality.
The pattern has structural purpose and applies to objects.
### When to use
* to add responsibilities to individual objects dynamically and transparently, that is, without affecting other objects
* for responsibilities that can be withdrawn
* when extension by subclassing is impractical