Domanda di colloquio di Warner Bros. Discovery

What's a singleton?

Risposta di colloquio

Anonimo

21 giu 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.