Possible Duplicate:
What is the difference between all-static-methods and applying a singleton pattern?

I need to make a decision for a project I'm working of whether to use static or singleton.

After reading an article like this I am inclined to use singleton.

What is better to use static class or singleton?

Edit 1 : Client Server Desktop Application.

Please provide code oriented solutions.

没有正确的解决方案

许可以下: CC-BY-SA归因
scroll top