From f22d4a361011e26afc72cbde83d2cac028ae7805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Tue, 24 Feb 2015 22:42:19 +0200 Subject: [PATCH] Added real world example of Builder. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index b4b0e7662..7075d0186 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,9 @@ * the algorithm for creating a complex object should be independent of the parts that make up the object and how they're assembled * the construction process must allow different representations for the object that's constructed +**Real world examples:** +* [java.lang.StringBuilder](http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html) + ## Factory Method [↑](#list-of-design-patterns) **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.