Which two are objectives of the Abstract Factory pattern?

Which two are objectives of the Abstract Factory pattern?

Which two are objectives of the Abstract Factory pattern?

A.
To create whole-part hierarchies

B.
To create families of related objects

C.
To enforce dependencies between concrete classes

D.
To specify the types of objects to create by using a sample instance

E.
To separate the construction of a complex object from its representation



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Ashishkumar

Ashishkumar

B and C correct answer.
Please check Gof for same.

E is wrong answer – Its objective for Builder design pattern.