I've been Googling for about an hour now and I still don't have a clear idea of what a singleton is. Can anyone make it a bit clearer to me and perhaps post a code example?

All I know is that you can only have one instance of a given class. But can't you just then use a static class for that?

Thanks in advance!

Edit
Report