In the context of software design patterns, what does the Singleton pattern ensure?
سافٹ ویئر ڈیزائن پیٹرن کے تناظر میں، سنگلٹن پیٹرن کیا یقینی بناتا ہے؟
- A class can be subclassed only once
- A class has only one instance and provides a global point of access to itAnswer
- A class can be instantiated only once per thread
- None of these
Source: SPSC Senior Computer Operator — 14 Jan 2025found on TestPoint
Explanation coming soon.
