Skip to content

Commit f22d4a3

Browse files
committed
Added real world example of Builder.
1 parent d6e6c32 commit f22d4a3

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
@@ -61,6 +61,9 @@
6161
* the algorithm for creating a complex object should be independent of the parts that make up the object and how they're assembled
6262
* the construction process must allow different representations for the object that's constructed
6363

64+
**Real world examples:**
65+
* [java.lang.StringBuilder](http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html)
66+
6467
## <a name="factory-method">Factory Method</a> [&#8593;](#list-of-design-patterns)
6568
**Intent:** Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
6669

0 commit comments

Comments
 (0)