BEZPŁATNE pytania i odpowiedzi dotyczące wzorców projektowych
Which Design Pattern should you employ when...
a class must only have one instance and be reachable by clients via a well-known access point?
Correct!
Wrong!
Which Design Pattern ought to be applied when a group of objects interact in intricate yet clearly defined ways? The ensuing interdependencies are chaotic and challenging to comprehend.
Correct!
Wrong!
Which Design Pattern should you employ when...
there is a language to parse and abstract syntax trees can be used to express assertions in the language?
Correct!
Wrong!
Which Design Pattern ought to be applied when...
to manage extensions of subclasses. You can create a template method that only allows extensions at certain points and calls "hook" operations elsewhere.
Correct!
Wrong!
Which Design Pattern ought to be applied when...
an object structure comprises a variety of classes of objects, each with a different interface, and you want to conduct actions on these objects that rely on their concrete classes?
Correct!
Wrong!
Which Design Pattern should you use when a system should be independent of the creation, composition, and representation of its products? Also, which Design Pattern should you use when the classes to instantiate are determined at runtime, such as when dynamic loading is used?
Correct!
Wrong!
Which Design Pattern ought to be applied when a large number of related classes merely differ in behavior or when you require several algorithmic variations? You may specify algorithms that represent various space/time trade-offs, for instance.
Correct!
Wrong!