• ¿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 32 páginas
Examen

SOEN341 Final Actual Exam Questions With Reviewed 100% Correct Detailed Answers Guaranteed Pass!!

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

SOEN341 Final Actual Exam Questions With Reviewed 100% Correct Detailed Answers Guaranteed Pass!! 1. Types of design patterns and Creational: Abstracts the object instantiation Process explain each Structural: Abstracts how classes and objects are composed to build larger structures Behavioural: Abstracts algorithms and assignment of responsi- bility among objects 2. Explain Observer 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 3. Name 3 structural patterns Adapter, composite, decorator 4. Explain Adapter Name: 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 5. Explain overriding Allows subclasses to redefine methods that super classes have already defined or declared 6. Explain interfaces Defines the methods that a class will respond to Can be declared in a .java file 7. Explain abstract class Can declare methods without providing an implementation Can define methods as well Cannot be instantiated directly 8. Name creational patterns Abstract factory, Factory method

Vista previa del contenido

SOEN341 Final Actual Exam Questions With Reviewed 100%
Correct Detailed Answers Guaranteed Pass!!

1. Types of design patterns and Creational: Abstracts the object instantiationProcess
explain each
Structural: Abstracts how classes and objects are composed to
build larger structures

Behavioural: Abstracts algorithms and assignment of responsi-
bility among objects

2. Explain Observer 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

3. Name 3 structural patterns Adapter, composite, decorator

4. Explain Adapter Name:
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

5. Explain overriding Allows subclasses to redefine
methods that superclasses have
already defined or declared




, SOEN341 Final Actual Exam Questions With Reviewed 100%
Correct Detailed Answers Guaranteed Pass!!

6. Explain interfaces Defines the methods that a class will
respond to

Can be declared in a .java file

7. Explain abstract class Can declare methods without
providing an implementation

Can define methods as well

Cannot be instantiated directly

8. Name creational patterns Abstract factory, Factory method

9. Explain factory method 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

10. Explain abstract factory Name:
Abstract Factory (aka: Kit)

Problem description:
Use when your system must be configured
with one of multiple families of objects

Solution description:




, SOEN341 Final Actual Exam Questions With Reviewed 100%
Correct Detailed Answers Guaranteed Pass!!

Creates abstractions that hide the
configuration details of the object families

11. Explain composite 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

12. Explain decorator Name:
Decorator

Problem description:
Add additional responsibility to an object
dynamically. An alternative to subclassing.

Solution description:
Use an abstraction to inject added
behaviour dynamically

13. Name 2 types of behavioural Strategy, template method
patterns

14. Explain Strategy Name:
Strategy (aka: Policy)

Problem description:


, SOEN341 Final Actual Exam Questions With Reviewed 100%
Correct Detailed Answers Guaranteed Pass!!

Use to make the method by which a task is
accomplished easily replaceable

Solution description:
New approaches to accomplishing a task
are produced by extending an abstraction

Example:
transportationStrategy by car, bus or plane

15. Explain template method Problem description:
Use to share common parts of an
implementation while allowing subclasses
to refine other parts

Solution description:
Common parts are defined in the
superclass, which makes calls to abstract
methods that deliver the other parts

16. Cohesion vs coupling Cohesion:
- Degree to which a module relies on
other members within the module to
deliver its functionality
- Cohesion is an indication of the relative functional strength of
a module.
- A cohesive module performs a single task, requiring little
interaction with other components in other parts of a program.
Stated simply, a cohesive module should (ideally) do just one
thing.

Coupling:
- Degree to which a module relies on

Información del documento

Subido en
21 de marzo de 2025
Número de páginas
32
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$13.49

¿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

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Vendido
284
Seguidores
87
Artículos
3433
Última venta
1 semana 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