Friday, March 13, 2009

Singleton versus Static

These are rules which I use to decide where or not my class will be a Singleton or Static:
  1. Control over construction. Timing issues.
  2. Polymorphism.
  3. One versus multiple instances.

No comments:

Post a Comment