Question
a.
A factory method is a non-constructor operation that creates and returns class instances
b.
Factory methods are widely used in mid-level design patterns and in object-oriented programming in general
c.
Factory methods create new instances using constructors or cloning, so they do not rely on any special technique for class instantiation
d.
All of the mentioned
Posted under Software Architecture and Design
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following is true about factory method?
Similar Questions
Discover Related MCQs
Q. When a generator assumes responsibility for product object creation in a factory method,which of the following capabilities become available?
View solution
Q. Which are the several reasons for using generator patterns?
View solution
Q. The Factory patterns decouple clients from products by taking advantage of interfaces in two ways?
View solution
Q. What are the types of factory pattern?
View solution
Q. Which class that can have only one instance?
View solution
Q. What are the drawbacks for singleton class?
View solution
Q. Which of the following are true for the singleton class?
View solution
Q. Which of the following are true for prototype pattern?
View solution
Q. Any class using the built-in cloning mechanism is supposed to do which of the following?
View solution
Q. Which of the following are correct for copy constructor?
View solution
Q. Which of the following pattern has Step up phase as its activity?
View solution
Q. What happen in the operational phase of Reactor pattern?
View solution
Q. The reactor patterns provide a good model for event-driven portions of a program for which of the following reasons?
View solution
Q. Which of the following are consequences for command pattern?
View solution
Q. Which among these are advantages for Function Class?
View solution
Q. Which of the several aspects of the Command pattern may be varied or elaborated to help achieve particular design goals
View solution
Q. Which of the following are the consequences for Command pattern?
View solution
Q. Which of the following is incorrect?
View solution
Q. Which of the following are true?
View solution
Q. Which of the following is incorrect?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Software Architecture and Design? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!