Multiple choice technology architecture

Defines an interface for creating an object, but let the subclasses decide which class to instantiate.It let the instantiation differ to subclasses.

  1. Abstract Factory

  2. Factory Method

  3. Builder

  4. Prototype

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

The Factory Method pattern defines an interface for creating an object but lets subclasses decide which class to instantiate. It defers instantiation to subclasses, allowing a class to delegate instantiation to child classes. Abstract Factory creates families of related objects, Builder constructs complex objects step-by-step, and Prototype clones existing objects.