+1 vote
in Software Architecture by (75.2k points)
Which class that can have only one instance?

(a) Adaptor Class

(b) Proxy Class

(c) Singleton Class

(d) Factory class

This question was posed to me in a dream while sleeping

This interesting 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 (c) Singleton Class

Best explanation: Singleton Class is the class that can have only one instance.

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
...