Stateless singleton VS Static methods

Posted by Sebastien Lorber on Stack Overflow See other posts from Stack Overflow or by Sebastien Lorber
Published on 2010-05-04T12:03:07Z Indexed on 2010/05/04 12:08 UTC
Read the original article Hit count: 228

Hey,

Don't find any good answer to this simple question about helper/utils classes:

Why would i create a singleton (stateless) rather than static methods?

Why an object instance could be needed while the object has no state?

Sometimes i really don't know what to use...

© Stack Overflow or respective owner

Related posts about singleton

Related posts about design-patterns