Question: What is the purpose of the singleton design pattern? It ensures that every object of a class can only have a single member variable. None
What is the purpose of the singleton design pattern?
It ensures that every object of a class can only have a single member variable.
None of these
It ensures that a class can only have a single object.
It ensures that any object a class is named singleton
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
