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:A
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