Multiple choice

Which of the following statements determine the behaviour of the Abstract factory pattern?

  1. It has step by step construction of a complex object.

  2. This pattern does not provide any concrete class for the dependent objects.

  3. This pattern allows the type of objects to be instantiated at run time.

  4. All of the above.

  5. Both (2) and (3).

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Abstract factory pattern encapsulate the group of factories in an interface with a common theme.