Multiple choice technology architecture

Which Pattern is used when it must be decided at run time which one of the several compatible classes is to be instantiated?[

  1. Singleton Pattern

  2. Façade Pattern.

  3. Factory Pattern.

  4. Adapter Pattern.

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

Factory Pattern is specifically designed to defer instantiation decisions to subclasses or factory methods, allowing the runtime selection of which compatible class to instantiate without the client knowing the concrete class. Singleton ensures only one instance exists. Facade provides a simplified interface to a complex subsystem. Adapter makes incompatible interfaces work together.