Definition:
Reduces memory consumption and creationation time by sharing objects in some state. A client can create only one sample of an object in some state and then after customizing it he can use it for his own purpose.
Example:
C++ code:
/src/flyweight.cpp
Download source code