Knowledge quiz

It's time to put what you've learned to the test, get 7 right to pass this week.

1.

How do you allow the object factory class to create an object of a managed class, which object creation is defined private?

Choose the correct answer.
2.

When object creation is managed by an object factory class, which class definition addition do you use in the managed class to prevent objects being created by anything other than the class itself and the named friends?

Choose the correct answer.
3.

Which of the following is an advantage of the presented dependency lookup compared to the other injection methods discussed in this course?

Choose the correct answer.
4.

What is the responsibility of an object factory injector class?

Choose the correct answer.
5.

Which of the following is an advantage of the dependency lookup with injector class presented in this course?

Choose the correct answer.
6.

Which measure allows the object factory injector class to change internals of the object factory class?

Choose the correct answer.
7.

What is the responsibility of an object factory class?

Choose the correct answer.
8.

When a factory pattern is used, who should take the decision on whether a class implements the singleton pattern or not?

Choose the correct answer.