Software Design Pattern Principles

In the context of software design patterns, what does the Singleton pattern ensure?

سافٹ ویئر ڈیزائن پیٹرن کے تناظر میں، سنگلٹن پیٹرن کیا یقینی بناتا ہے؟
Answer: A class has only one instance and provides a global point of access to it
Explanation
  • The Singleton pattern ensures that a class has only one instance throughout the application.
  • It provides a global point of access to that single instance.
  • It preventing the creation of additional instances.
  • This question appeared in Past Papers (1 times)
    This question appeared in Subjects (1 times)

    Install this app on your device for quick access right from your home screen.