SOFTWARE DESIGN
DESIGN PATTERNS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
A Singleton is used when you want to guarantee one instance:
|
true
|
|
false
|
|
Either A or B
|
|
None of the above
|
Explanation:
Detailed explanation-1: -Q 9-Which of the following is correct about Singleton design pattern. A-This type of design pattern comes under creational pattern. B-This pattern involves a single class which is responsible to create an object while making sure that only single object gets created.
Detailed explanation-2: -The general purpose of the Singleton pattern is to: D Control creation of objects in a single class or another class.
There is 1 question to complete.