User-submitted Design Patterns Projects

57
1256 reads
ModCool's picture

Submitted by

ModCool
AbstractFactory
This example demonstrates Abstract Factory pattern. In this example AbstractFactory declares a interface for operations that create abstract products.ConcreteFactory implements operations to create c
Run It Now!
50
1093 reads
ModCool's picture

Submitted by

ModCool
Singleton lazy Instatiation
this example demonstrates lazy instantiation using double locking machanism.In this example the singleton instance is created when the getInstance() method is called for the first time.
Run It Now!
73
1135 reads
CrazyCoder's picture

Submitted by

CrazyCoder
Singleton Early Instatiation
This example demonstrates lazy instantiation using double locking machanism.In this example the singleton instance is created when the getInstance() method is called for the first time.
Run It Now!