The _____ design pattern is primarily used to create an object that follows the object-oriented principle of single responsibility and separation of concern?

  • Singleton
  • Factory
  • Observer
  • Adapter
The Factory design pattern is primarily used to create objects while adhering to the object-oriented principles of single responsibility and separation of concern. It abstracts the process of object creation and allows subclasses to implement the specific details.
Add your answer
Loading...

Leave a comment

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