🎴 Flashcard Mode

Business Process Management and Software Architecture

Card1 / 20
Mastered0
Review0
QuestionClick to flip

What is a Singleton Pattern

AnswerClick to flip back
A
Provides a class of which there can be no more than an instance, and provides a single global point of access to that instance
💡 Explanation:

Singleton pattern ensures a class has only one instance and provides a global access point to it. This is useful for shared resources like database connections or logging services. Option A incorrectly describes creating many instances, which contradicts Singleton's purpose. Option B is insufficient because a single constructor alone doesn't prevent multiple instances. Option D describes the Object Pool pattern, which manages reusable objects.

Change Mode