StackUpDev
Yes. I am aware this is a common question in interviews. But it is also a 'tricky one'. Not knowing the drawbacks of using singletons is a common error in interviews.
I take a lot of interviews but don't ask about singletons.
Here there are 18 reasons of the problems they bring
Maxi Contieri
Software Engineer
Hi Singleton (it is mistyped on the image) is a very well known antipattern, and it is discouraged even by their creators