Skip to content

Commit e30dcbe

Browse files
committed
Added real world example for Singleton.
1 parent 69e9fb1 commit e30dcbe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@
104104
* managing a connection to a database
105105
* file manager
106106

107+
**Real world examples:**
108+
* [java.lang.Runtime#getRuntime()](http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#getRuntime%28%29)
109+
107110
## <a name="adapter">Adapter</a> [&#8593;](#list-of-design-patterns)
108111
**Intent:** Convert the interface of a class into another interface the clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.
109112

0 commit comments

Comments
 (0)