Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
a. Factory methods
b. Factory constructors
c. Abstract factory
d. Abstract product
e. Concrete factory
6. You want all the clients using class A to use the same instance
of class A, what should you do to achieve this goal?
a. Abstract Singleton
b. Singleton
c. Concrete Singleton
d. Singleton factory
9. When would you use the GOF abstract factory pattern? (choose
all that apply)
a. To design a structure which has a uniform interface for
both compositions of objects and individual objects
b. To ensure that a certain group of related objects are
used together
c. The client which uses your design is not dependent on
how the object are created or connected together
d. To decouple the creation of objects from their usage
a. Chain of Responsibility
b. Abstract Factory
c. Builder
d. Observer
11. Which design pattern you would you use to decouple an
abstraction from its implementation so that the two can
vary independently?
a. Bridge
b. RefinedAbstraction
c. Class Generalization
d. Implementor
e. Abstraction
a. Adapter
b. Notifier
c. Observer
d. State
a. Factory Method
b. Prototype
c. Abstract Factory
d. Singleton