1/29/25, 10:05 AM SOEN 341 EXAM TEST BANK 2025 | ALL EXAM QUESTIONS AND CORRECT ANSWERS | ALREADY GRADED A+ | VERIFIED…
SOEN 341 EXAM TEST BANK 2025 | ALL EXAM
QUESTIONS AND CORRECT ANSWERS |
ALREADY GRADED A+ | VERIFIED ANSWERS |
LATEST VERSION (ALL THAT IS NEEDED IN ONE
DOCUMENT)
Save
Terms in this set (114)
Creational: Abstracts the object instantiationProcess
Structural: Abstracts how classes and objects are
Types of design patterns
composed to build larger structures
and explain each
Behavioural: Abstracts algorithms and assignment of
responsibility among objects
Name: Observer (aka: Publish-Subscribe)
Problem description: Use when multiple presentations
of an object's state are needed
Explain Observer
Solution description: Separates presentation of object
state from the object itself
Name 3 structural patterns Adapter, composite, decorator
https://quizlet.com/998737654/soen-341-exam-test-bank-2025-all-exam-questions-and-correct-answers-already-graded-a-verified-answers-latest-ver… 1/31
,1/29/25, 10:05 AM SOEN 341 EXAM TEST BANK 2025 | ALL EXAM QUESTIONS AND CORRECT ANSWERS | ALREADY GRADED A+ | VERIFIED…
Name:
Adapter (aka: Wrapper)
Problem description:
Use when a class' interface doesn't match
Explain Adapter
with the hierarchy that we want to use
Solution description:
Inject a class to adapt the interface to the
expectation
Allows subclasses to redefine
Explain overriding methods that superclasses have
already defined or declared
Defines the methods that a class will
respond to
Explain interfaces
Can be declared in a .java file
Can declare methods without
providing an implementation
Explain abstract class
Can define methods as well
Cannot be instantiated directly
Name creational patterns Abstract factory, Factory method
Name:
Factory Method (aka: Virtual Constructor)
Problem description:
Use when a class cannot anticipate the
Explain factory method
objects it must create
Solution description:
Defers the responsibility of creating objects
to subclasses that know what to create
https://quizlet.com/998737654/soen-341-exam-test-bank-2025-all-exam-questions-and-correct-answers-already-graded-a-verified-answers-latest-ver… 2/31
,1/29/25, 10:05 AM SOEN 341 EXAM TEST BANK 2025 | ALL EXAM QUESTIONS AND CORRECT ANSWERS | ALREADY GRADED A+ | VERIFIED…
Name:
Abstract Factory (aka: Kit)
Problem description:
Use when your system must be configured
Explain abstract factory
with one of multiple families of objects
Solution description:
Creates abstractions that hide the
configuration details of the object families
Name:
Composite
Problem description:
Use to allow clients to treat individual
objects and collections of them identically
Explain composite
Solution description:
Use an abstraction to hide the fact that an
object is an aggregate of several objects
Example: arithmetic tree
Name:
Decorator
Problem description:
Add additional responsibility to an object
Explain decorator
dynamically. An alternative to subclassing.
Solution description:
Use an abstraction to inject added
behaviour dynamically
Name 2 types of Strategy, template method
behavioural patterns
https://quizlet.com/998737654/soen-341-exam-test-bank-2025-all-exam-questions-and-correct-answers-already-graded-a-verified-answers-latest-ver… 3/31
, 1/29/25, 10:05 AM SOEN 341 EXAM TEST BANK 2025 | ALL EXAM QUESTIONS AND CORRECT ANSWERS | ALREADY GRADED A+ | VERIFIED…
Name:
Strategy (aka: Policy)
Problem description:
Use to make the method by which a task is
accomplished easily replaceable
Explain Strategy
Solution description:
New approaches to accomplishing a task
are produced by extending an abstraction
Example:
transportationStrategy by car, bus or plane
Problem description:
Use to share common parts of an
implementation while allowing subclasses
to refine other parts
Explain template method
Solution description:
Common parts are defined in the
superclass, which makes calls to abstract
methods that deliver the other parts
https://quizlet.com/998737654/soen-341-exam-test-bank-2025-all-exam-questions-and-correct-answers-already-graded-a-verified-answers-latest-ver… 4/31
SOEN 341 EXAM TEST BANK 2025 | ALL EXAM
QUESTIONS AND CORRECT ANSWERS |
ALREADY GRADED A+ | VERIFIED ANSWERS |
LATEST VERSION (ALL THAT IS NEEDED IN ONE
DOCUMENT)
Save
Terms in this set (114)
Creational: Abstracts the object instantiationProcess
Structural: Abstracts how classes and objects are
Types of design patterns
composed to build larger structures
and explain each
Behavioural: Abstracts algorithms and assignment of
responsibility among objects
Name: Observer (aka: Publish-Subscribe)
Problem description: Use when multiple presentations
of an object's state are needed
Explain Observer
Solution description: Separates presentation of object
state from the object itself
Name 3 structural patterns Adapter, composite, decorator
https://quizlet.com/998737654/soen-341-exam-test-bank-2025-all-exam-questions-and-correct-answers-already-graded-a-verified-answers-latest-ver… 1/31
,1/29/25, 10:05 AM SOEN 341 EXAM TEST BANK 2025 | ALL EXAM QUESTIONS AND CORRECT ANSWERS | ALREADY GRADED A+ | VERIFIED…
Name:
Adapter (aka: Wrapper)
Problem description:
Use when a class' interface doesn't match
Explain Adapter
with the hierarchy that we want to use
Solution description:
Inject a class to adapt the interface to the
expectation
Allows subclasses to redefine
Explain overriding methods that superclasses have
already defined or declared
Defines the methods that a class will
respond to
Explain interfaces
Can be declared in a .java file
Can declare methods without
providing an implementation
Explain abstract class
Can define methods as well
Cannot be instantiated directly
Name creational patterns Abstract factory, Factory method
Name:
Factory Method (aka: Virtual Constructor)
Problem description:
Use when a class cannot anticipate the
Explain factory method
objects it must create
Solution description:
Defers the responsibility of creating objects
to subclasses that know what to create
https://quizlet.com/998737654/soen-341-exam-test-bank-2025-all-exam-questions-and-correct-answers-already-graded-a-verified-answers-latest-ver… 2/31
,1/29/25, 10:05 AM SOEN 341 EXAM TEST BANK 2025 | ALL EXAM QUESTIONS AND CORRECT ANSWERS | ALREADY GRADED A+ | VERIFIED…
Name:
Abstract Factory (aka: Kit)
Problem description:
Use when your system must be configured
Explain abstract factory
with one of multiple families of objects
Solution description:
Creates abstractions that hide the
configuration details of the object families
Name:
Composite
Problem description:
Use to allow clients to treat individual
objects and collections of them identically
Explain composite
Solution description:
Use an abstraction to hide the fact that an
object is an aggregate of several objects
Example: arithmetic tree
Name:
Decorator
Problem description:
Add additional responsibility to an object
Explain decorator
dynamically. An alternative to subclassing.
Solution description:
Use an abstraction to inject added
behaviour dynamically
Name 2 types of Strategy, template method
behavioural patterns
https://quizlet.com/998737654/soen-341-exam-test-bank-2025-all-exam-questions-and-correct-answers-already-graded-a-verified-answers-latest-ver… 3/31
, 1/29/25, 10:05 AM SOEN 341 EXAM TEST BANK 2025 | ALL EXAM QUESTIONS AND CORRECT ANSWERS | ALREADY GRADED A+ | VERIFIED…
Name:
Strategy (aka: Policy)
Problem description:
Use to make the method by which a task is
accomplished easily replaceable
Explain Strategy
Solution description:
New approaches to accomplishing a task
are produced by extending an abstraction
Example:
transportationStrategy by car, bus or plane
Problem description:
Use to share common parts of an
implementation while allowing subclasses
to refine other parts
Explain template method
Solution description:
Common parts are defined in the
superclass, which makes calls to abstract
methods that deliver the other parts
https://quizlet.com/998737654/soen-341-exam-test-bank-2025-all-exam-questions-and-correct-answers-already-graded-a-verified-answers-latest-ver… 4/31