16.3k views
1 vote
In the abstract factory pattern, the concretefactory is best implemented as:

a. singleton
b. builder
c. factory method
d. another abstract factory

User Greg Combs
by
8.4k points

1 Answer

4 votes

Final answer:

The concrete factory in the abstract factory pattern is best implemented as a factory method.

Step-by-step explanation:

In the abstract factory pattern, the concrete factory is best implemented as a factory method. This is because the factory method pattern allows subclasses to decide which concrete implementation to use by providing a method that creates the objects. This promotes flexibility and makes it easier to add new concrete factories without modifying existing code.

User Gennad
by
8.2k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.