Bay Alarm interview question

Write a singleton method and explain why you would use one.

Interview Answer

Anonymous

6 Jul 2012

I would never use one, but it is sometimes used to prevent duplicate database objects from being instanciated.