• Home
  • Which of the following describes the Singleton pattern correctly?
Question 1:
Which of the following describes the Singleton pattern correctly?
A. This pattern creates object without exposing the creation logic to the client and refer to newly created object using a common interface
B. In this pattern an interface is responsible for creating a factory of related objects without explicitly specifying their classes
C. This pattern involves a single class which is responsible to create an object while making sure that only single object gets created
Feedback Singleton involves a single class which is responsible to create an object while making sure that only single object gets created
D. This pattern is used when we want to pass data with multiple attributes in one shot from client to server

These questions are from this test. Would you like to take a practice test?

Design Patterns Quiz 3 | Englishfreetest.com