Creational Design Patterns

Ads
 

Creational Design Patterns

The singleton design pattern deals with one and only one instance of an object that encapsulates the control of the object from a common place.

The singleton design pattern deals with one and only one instance of an object that encapsulates the control of the object from a common place.

Creational Design Patterns

       

 
  1. Singleton Pattern
    The singleton design pattern deals with one and only one instance of an object that encapsulates the control of the object from a common place. There are various ways of achieving this pattern.

Benefits:
Singleton pattern controls access to unique instances, reduce name space, permits a variable number of instances, allows refinement of operations and representations, and provides more flexibility than class operations.

Read more at:

http://www.javajazzup.com/issue3/page44.shtml

 

       

Ads

Ads