What is Factory pattern?

  • A design pattern used to create objects in a more efficient way
  • A design pattern used to manage the dependencies between objects
  • A design pattern used to manage the lifecycle of objects
  • A design pattern used to manage the relationships between objects
The Factory pattern is a creational design pattern that provides a way to create objects in a more efficient and centralized manner. The Factory pattern abstracts the process of object creation and allows the client code to be decoupled from the actual implementation of the objects being created. This allows for greater flexibility and maintainability in the code, as the specific implementation of the objects can be changed without affecting the client code.
Add your answer
Loading...

Leave a comment

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