The Home Depot interview question

What is a Singleton class?

Interview Answer

Anonymous

18 May 2021

A singleton is a class that can only have one Object at a time. Any future instantiations/variables will point to the original Object.

1