README.md 568 字节
Newer Older
I
Ilkka Seppälä 已提交
1

I
Ilkka Seppälä 已提交
2 3 4 5 6 7
Design pattern samples in Java.


Abstract Factory
================
Intent: Provide an interface for creating families of related or dependent objects without specifying their concrete classes.
I
Ilkka Seppälä 已提交
8 9 10 11 12


Builder
=======
Intent: Separate the construction of a complex object from its representation so that the same construction process can create different representations.
I
Ilkka Seppälä 已提交
13 14 15 16 17


Factory Method
==============
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.