The greatness of Singleton pattern is: Initialize the object (instance) only once. Then we can interact with non-static members. But what more powerful about Singleton pattern is the Constructor.
If we dont need a constructor that initialize objects, then the singleton pattern is meaningless and we can use static class.
But what if we do need to get parameters into the constructor?
The constructor has one role with two options: one to initialize objects to their initial values and the second is to initialize objecs to the values it gets via parameters, so can we say that singleton pattern omits the second one?
Otherwise, what are the diffrences between singleton pattern and static class?
Thanks, Jacob