19 December, 2006

Singleton Pattern

The meaning and benefit of using singleton pattern is:
  • make sure there is only one instance
  • only have to write three static method(in simplest case)
If you do not want these feature, you can just use a global variable.

No comments: