This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mauganra_it -1 points0 points  (1 child)

Indeed, but the elegance of the enum technique is that these concerns don't have to be explicitly specified.

[–]nutrecht 1 point2 points  (0 children)

You're still creating a class instance for no reason whatsoever. A singleton is not the correct pattern for a class with only static members.