Static vs. Single

Possible duplicate:
Why choose a static class compared to a singleton implementation?

Static methods against single numbers.
Is it possible to determine the choice here?
What are the conditions under which one of these approaches is definitely more suitable then the other?

+3
source share
2 answers

Static methods follow “low coupling and high coherence” - more than single methods. (So ​​far, their implementations do not rely on static member variables.)

+3
source

If static methods solve the same problem as singleton, then why complicate and write a singleton?

, ?

+2

All Articles