S
S
sorry_i_noob2019-08-22 23:37:15
Design patterns
sorry_i_noob, 2019-08-22 23:37:15

In what situations cannot a static class replace a Singleton?

Hello.
I don't understand why Singleton is needed if there is a static class. Can you write situations where a static class cannot replace a Singleton?
Yes, Singleton can be passed as parameters. But why pass if we connected the static class once and now we can call it from the entire program?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question