adplus-dvertising
frame-decoration

Question

The Factory patterns decouple clients from products by taking advantage of interfaces in two ways?

a.

The generator class with the factory methods cannot be changed, disallowing variability in factory method implementations

b.

Instances of a variety of classes that implement the product interface can be returned by a factory method, allowing great flexibility in results

c.

All of the mentioned

d.

None of the mentioned

Answer: (b).Instances of a variety of classes that implement the product interface can be returned by a factory method, allowing great flexibility in results

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The Factory patterns decouple clients from products by taking advantage of interfaces in two ways?

Similar Questions

Discover Related MCQs

Q. What are the types of factory pattern?

Q. Which class that can have only one instance?

Q. What are the drawbacks for singleton class?

Q. Which of the following are true for the singleton class?

Q. Which of the following are true for prototype pattern?

Q. Any class using the built-in cloning mechanism is supposed to do which of the following?

Q. Which of the following are correct for copy constructor?

Q. Which of the following pattern has Step up phase as its activity?

Q. What happen in the operational phase of Reactor pattern?

Q. The reactor patterns provide a good model for event-driven portions of a program for which of the following reasons?

Q. Which of the following are consequences for command pattern?

Q. Which among these are advantages for Function Class?

Q. Which of the several aspects of the Command pattern may be varied or elaborated to help achieve particular design goals

Q. Which of the following are the consequences for Command pattern?

Q. Which of the following is incorrect?

Q. Which of the following are true?

Q. Which of the following is incorrect?

Q. Which of the following is correct?

Q. Which of the following is correct?

Q. Which of the following is incorrect?