previous |
start |
next
Not a FACTORY METHOD
- Not all "factory-like" methods are instances of this
pattern
- Create DateFormat
instances
DateFormat formatter =
DateFormat.getDateInstance();
Date now = new
Date();
String formattedDate =
formatter.format(now);
- getDateInstance is
a static method
- No polymorphic creation
previous |
start |
next