Which design pattern restricts the instantiation of a class to a single instance and provides a global point of access to it?
- Factory Pattern
- Singleton Pattern
- Observer Pattern
- Abstract Factory Pattern
The Singleton design pattern restricts the instantiation of a class to a single instance. It provides a global point of access to that instance, making it useful when you want to ensure there's only one instance of a class throughout your application, like a configuration manager, a database connection, or a logging service.
Loading...
Related Quiz
- What is the significance of using Boundary Value Analysis in Black Box Testing?
- Discuss how continuous customer or stakeholder involvement in the Agile model might influence the quality assurance process.
- Envision a scenario where a unit has passed all Unit Tests but is still exhibiting unexpected behavior when integrated into the full software system. What might be occurring, and how could this issue be diagnosed and resolved?
- How does SQA contribute to improving the communication among the development team members?
- How does the ISO/IEC 25010 standard classify software quality in terms of characteristics and sub-characteristics?