Update README.md
This commit is contained in:
parent
7f3c311ebe
commit
0fb8808c65
@ -45,6 +45,12 @@
|
||||
##Singleton
|
||||
**Intent:** Ensure a class only has one instance, and provide a global point of access to it.
|
||||
|
||||

|
||||
|
||||
**Applicability:** Use the Singleton pattern when
|
||||
* the must be exactly one instance of a class, and it must be accessible to clients from a well-known access point
|
||||
* when the sole instance should be extensible by subclassing, and clients should be able to use an extended instance without modifying their code
|
||||
|
||||
##Adapter
|
||||
**Intent:** Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user