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
7.8k 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
7.4k points