adplus-dvertising
frame-decoration

Question

Which pattern prevents one from creating more than one instance of a variable?

a.

Factory Method

b.

Singleton

c.

Observer

d.

None of the mentioned

Answer: (b).Singleton

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which pattern prevents one from creating more than one instance of a variable?