SOFTWARE DESIGN
DESIGN PATTERNS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
The AbstractFactory contains logic for creation:
|
true
|
|
false
|
|
Either A or B
|
|
None of the above
|
Explanation:
Detailed explanation-1: -ADVERTISEMENT. Abstract Factory patterns work around a super-factory which creates other factories. This factory is also called as factory of factories. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object.
Detailed explanation-2: -Abstract factory is a design pattern that allows us to respect the open-closed principle and delegates the responsibility for creating objects to specific classes (concrete factories) using polymorphism. This allows us to have much cleaner and more scalable code.
There is 1 question to complete.