ٍSingleton Class

Dear all,

I am reading about the singleton class.
I know that the singleton class is used whenever only one instance is needed throught our application. It's Ok, I can understand this but what the benefit of using such classes. I know that a class with only static attributes and methods is not good because it is not OOP. Could anybody, please, help me by giving me an example (code) for the use of singleton class (not how to write such class but how to make use of it).

Thank you in advance.
google "singleton class c++"
Topic archived. No new replies allowed.