Which design pattern can be used to create a family of related or dependent objects without specifying their concrete classes?

  • Factory Method Pattern
  • Abstract Factory Pattern
  • Singleton Pattern
  • Prototype Pattern
The Abstract Factory Pattern allows you to create families of related or dependent objects without specifying their concrete classes. It provides an interface for creating objects in various categories while ensuring their compatibility within the family.
Add your answer
Loading...

Leave a comment

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