The _______ design pattern ensures that a class has only one instance and provides a global point of access to it.

  • Adapter
  • Factory
  • Observer
  • Singleton
The Singleton design pattern ensures that a class has only one instance and provides a global point of access to it. This is particularly useful when exactly one object is needed to coordinate actions across the system.
Add your answer
Loading...

Leave a comment

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