Multiple choice technology architecture

What design pattern limits the number of instances a class can create?

  1. Command

  2. Limiter

  3. Strategy

  4. Singleton

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The Singleton pattern specifically restricts a class to a single instance. Option D is correct - Singleton ensures only one instance exists and provides global access. Options A, B, and C are incorrect because Command, Limiter (not a standard GoF pattern), and Strategy don't limit instance count - they're behavioral patterns focused on execution, encapsulation, and algorithm variation respectively.