Warner Bros. Discovery interview question

What's a singleton?

Interview Answer

Anonymous

21 Jun 2012

Based on the Singleton pattern, it restricts class instantiation to only one object. Think of static classes and variables in .NET. You can only create one instance of them.