+1 vote
in Software Architecture by (75.2k points)
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

1 Answer

0 votes
by (46.2k points)
The correct choice is (d) All of the internship

Best explanation: All are the drawbacks for the singleton class.

Related questions

We welcome you to Carrieradda QnA with open heart. Our small community of enthusiastic learners are very helpful and supportive. Here on this platform you can ask questions and receive answers from other members of the community. We also monitor posted questions and answers periodically to maintain the quality and integrity of the platform. Hope you will join our beautiful community
...