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.
Loading...
Related Quiz
- Which of the following options is a technique to manage callback hell in JavaScript?
- You're troubleshooting a web application and notice that an event is not being captured during the capturing phase as expected. What could be a potential reason for this event not being captured?
- In JavaScript, variables declared with the var keyword have _________ scope.
- What is the time complexity of the unshift() method in JavaScript arrays?
- A common use-case for a "for" loop in asynchronous programming is to use it with the ________ function.