Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 6 pages
Exam (elaborations)

OOD – Exam 1 – Study Guide and Key Concepts

Document preview thumbnail
Preview 2 out of 6 pages

This document is a comprehensive study guide for Exam 1 in Object-Oriented Design (OOD), covering fundamental principles, design patterns, and core concepts. It includes explanations of classes, objects, inheritance, polymorphism, encapsulation, and key UML diagrams. The guide also highlights practical examples, common pitfalls, and strategies for applying OOD principles effectively in software design.

Content preview

OOD – Exam 1 – Study Guide and Key Concepts

Builder design Pattern - correct answer ✔✔ A pattern used to create objects made from a
bunch of other objects.



Used when:

- You want to build an object made up from other objects

- You want the creation of these parts to be independent of the main object

- Hide the creation of the parts from the client so both aren't dependent



(The builder part knows the specifics and every other class knows nothing about the specifics
about what it else does)



MVC design pattern - correct answer ✔✔ The Model View Controller design pattern completely
separates the calculations and interface from each other.



Model: Data and Methods used to work with it. (the domain information that the user
manipulates)



View: The Interface (knows how to display the interface to the user)



Controller: Coordinates interactions between the View and Model (takes input from the user
and decides what to do)



What does the Model part of MVC do? - correct answer ✔✔ - Often enforces information
integrity

- For games, this means enforcing the rules

, 1. What does it need to do?

2. Error conditions?



How do you traverse through a two dimensional array? - correct answer ✔✔ // 4 rows and 10
columns

int [ ] [ ] a = new int [4] [10];



Looping through a 2D array:

• Nested for loop traversal

• Goes throw each row by row.



r = rows

c = columns



for (int r = 0; r < myArray.length; r++) {

for (int c = 0; c < my Array[0].length; c++) {

int current = myArray[r][c]);

}

}



inside the innerloop:

myArray[c][r] += 10; // add 10 to each item



Adapter Design Pattern - correct answer ✔✔ - Allows 2 incompatible interfaces to work
together



- Used when the client expects a (target) interface

Document information

Uploaded on
February 27, 2026
Number of pages
6
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
£10.26

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
BravelRadon
3.5
(164)
Sold
954
Followers
541
Items
53022
Last sold
3 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions