Update README.md
This commit is contained in:
parent
ff82d13cda
commit
10216f2ec9
@ -86,6 +86,13 @@
|
|||||||
##Decorator
|
##Decorator
|
||||||
**Intent:** Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
|
**Intent:** Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
**Applicability:** Use Decorator
|
||||||
|
* 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. Sometimes a large number of independent extensions are possible and would produce an explosion of sublasses to support every combination. Or a class definition may be hidden or otherwise unavailable for subclassing
|
||||||
|
|
||||||
##Facade
|
##Facade
|
||||||
**Intent:** Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.
|
**Intent:** Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user