Hi all,
I am trying to understand the concept of private constructors and singleton.
As far as i have studied, we can have private constructors , destructors and that they are used to avoid making instances of the class other than its member function.
now that i am trying to implement it i am facing few problems
how can i have an object of a class whose constructor is private?
also how will i call a member function in main( if we use static please explain how)
Can we please discuss on this so that my fundamentals are clear?