SOFTWARE ENGINEERING

SOFTWARE DESIGN

DESIGN PATTERNS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What statement is wrong?
A
A factory method is abstract.
B
A factory method handles object creation and encapsulates it in a subclass.
C
A factory method informs the client what concrete product is actually created.
D
A factory method returns a product that is typically used within methods defined in the superclass.
E
A factory method might be parametrized (or not).
Explanation: 

Detailed explanation-1: -Which of the following is correct about Factory design pattern. This type of design pattern comes under creational pattern. Factory pattern creates object without exposing the creation logic to the client. Factory pattern refers to newly created object using a common interface.

Detailed explanation-2: -Q 7-Which of the following is correct about Factory design pattern. A-This type of design pattern comes under creational pattern. B-Factory pattern creates object without exposing the creation logic to the client. C-Factory pattern refers to newly created object using a common interface.

There is 1 question to complete.