100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
SOEN341 Final Exam Questions And Answers. Verified and Updated. $13.49   Add to cart

Exam (elaborations)

SOEN341 Final Exam Questions And Answers. Verified and Updated.

 0 view  0 purchase
  • Course
  • SOEN341
  • Institution
  • SOEN341

SOEN341 Final Exam Questions And Answers. Verified and Updated. Types of design patterns and explain each - answerCreational: Abstracts the object instantiationProcess Structural: Abstracts how classes and objects are composed to build larger structures Behavioural: Abstracts algorithms and as...

[Show more]

Preview 3 out of 29  pages

  • August 5, 2024
  • 29
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • SOEN341
  • SOEN341
avatar-seller
Thebright
SOEN341 Final Exam Questions And
Answers. Verified and Updated.

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:
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


EXAM STUDY MATERIALS July 24, 2024 1:33:58 PM

,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


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)


EXAM STUDY MATERIALS July 24, 2024 1:33:58 PM

, Problem description:
Use when your system must be configured
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


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


Solution description:

EXAM STUDY MATERIALS July 24, 2024 1:33:58 PM

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Thebright. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83637 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.49
  • (0)
  Add to cart