Social Sciences, asked by abhinavdey9874, 2 months ago

"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 jainbhavika32
19

Answer:

Singleton Pattern

Explanation:

Answered by mahitiwari89
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