I have been reading singleton pattern,it's advantages and disadvantages. Since I am new to this I am not able to understand the detailed nature of disadvantages. Can someone please explain in detail the disadvantages of singleton with any example if possible.
1. How do they deviate from Single Responsibility Principle(SRP).
2. It hides the dependency in the code of the application.
Thanks in advance!!!
What I have tried:
I have tried google to understand the disadvantages but everywhere they uses the same terms without any example.