"This pattern evaluates scenarios where you need just one object and you don't want to create multiple objects of that particular class. Or simply put restricting construction of more than one object" Which pattern is it?
Answers
Answered by
19
Answer:
Singleton Pattern
Explanation:
Answered by
0
Answer:
"This pattern evaluates scenarios where you need just one object, and you don't want to create multiple objects of that particular class. Or simply put restricting the construction of more than one object" is Singleton Design Pattern.
Explanation:
The Singleton Design Pattern is a Creational pattern in which only one instance of a class is created and only one global access point to that object is provided. Calendar is a common example of such a class in Java, and you cannot create an instance of it.
#SPJ2
Similar questions