Pakistan's best MCQs practice hub — FPSC · PPSC · CSS · NTS · Other Exams
Login

In Software Design Patterns (GoF), which design pattern restricts the instantiation of a class to one single instance and provides global access to it?

AFactory Method Pattern
BPrototype Pattern
CSingleton Pattern
DBuilder Pattern

Explanation

The Singleton design pattern ensures that only one instance of a class exists in memory throughout application execution.

Exam Relevance
  • Topic: Software Design Patterns
  • Subtopic: Creational Patterns
Submitted by: mcqstutor Team More Software Engineering MCQs →

No Comments

Leave a comment

Your email address will not be published. Required fields are marked *