• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 4 fuera de 43 páginas
Examen

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)

Document preview thumbnail
Vista previa 4 fuera de 43 páginas

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)

Vista previa del contenido

1|Page



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)
Types of design patterns and explain each - (ANSWER)Creational: Abstracts the
object instantiationProcess



Structural: Abstracts how classes and objects are composed to build larger
structures



Behavioural: Abstracts algorithms and assignment of responsibility among objects



Explain Observer - (ANSWER)Name: Observer (aka: Publish-Subscribe)



Problem description: Use when multiple presentations of an object's state are
needed




Solution description: Separates presentation of object state from the object itself



Name 3 structural patterns - (ANSWER)Adapter, composite, decorator



Explain Adapter - (ANSWER)Name:

,2|Page


Adapter (aka: Wrapper)



Problem description:

Use when a class' interface doesn't match

with the hierarchy that we want to use



Solution description:

Inject a class to adapt the interface to the

expectation



Explain overriding - (ANSWER)Allows subclasses to redefine

methods that superclasses have

already defined or declared



Explain interfaces - (ANSWER)Defines the methods that a class will

respond to



Can be declared in a .java file



Explain abstract class - (ANSWER)Can declare methods without

providing an implementation

,3|Page


Can define methods as well



Cannot be instantiated directly



Name creational patterns - (ANSWER)Abstract factory, Factory method



Explain factory method - (ANSWER)Name:

Factory Method (aka: Virtual Constructor)



Problem description:

Use when a class cannot anticipate the

objects it must create



Solution description:

Defers the responsibility of creating objects

to subclasses that know what to create



Explain abstract factory - (ANSWER)Name:

Abstract Factory (aka: Kit)



Problem description:

Use when your system must be configured

, 4|Page


with one of multiple families of objects



Solution description:

Creates abstractions that hide the

configuration details of the object families



Explain composite - (ANSWER)Name:

Composite



Problem description:

Use to allow clients to treat individual

objects and collections of them identically



Solution description:

Use an abstraction to hide the fact that an

object is an aggregate of several objects



Example: arithmetic tree



Explain decorator - (ANSWER)Name:

Decorator

Información del documento

Subido en
7 de marzo de 2025
Número de páginas
43
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
Gratis
Descarga

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
504
Seguidores
2
Artículos
3027
Última venta
2 días hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes