What are the drawbacks for singleton class?
(a) Many languages do not allow classes to be values assignable to variables.
(b) Singleton classes can be subclassed, and the singleton factory method can return a sub-class instance
(c) Classes can easily replace only single instances
(d) All of the internship
The question was posed to me in quiz.
Question is from The Generator Category, Factory Patterns and Singleton Patterns in division Visibility, Accessibility and Information Hiding of Software Architecture