Class Design

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/48

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:23 PM on 4/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

49 Terms

1
New cards

What are the 5 steps of creating software?

Establishing requirements

Creating a design

Implementing the code

Testing the implementation

Maintaining the implement

2
New cards

Explain Establishing requirements (Steps of creating software) (2)

Specifying what a program must accomplish

  • Descriptions of UI

  • Initial requirements are critiqued/modified/expanded

3
New cards

What does careful attention in the “establishing requirements” stage save?

Time and expense

4
New cards

Explain Creating a Design (Steps of creating software) (2)

Specifies how a program will accomplish its requirements.

  • Includes 1 or more algorithms.

  • Algorithms may be expressed in pseudocode

5
New cards

What does design establish in object-oriented development? (3)

Classes & Objects. Methods & Data required. Modeled using UML diagram

6
New cards

Explain Implementing The Code (Steps of creating software) (2)

  • Least creative step

    • Focuses on style guidlines and documentation

7
New cards

Explain Testing The Implementation (Steps of creating software) (1)

Testing execution with various inputs to find errors

8
New cards

What is debugging?

Discovering causes of errors and fixing problems

9
New cards

What is unit testing?

Testing individual methods

10
New cards

What is integration testing?

Testing how different classes work together

11
New cards

What is regression testing?

Used to ensure existing functionality is maintained after changes

12
New cards

What is performance testing?

Checking speed/security/usability

13
New cards

Explain MaintainingThe Implementation (Steps of creating software) (2)

Modifying code to improve software by fixing deficiencies and adding features

14
New cards

What does UML Digrams stand for?

Unified Modelling Language Diagrams

15
New cards

Function of Use Case Diagrams

Indentifies what the system must do before deciding how to build it

16
New cards

Function of Activity Diagrams

Describe the flow of actions (sequential and parallel)

17
New cards

Function of State Diagrams

Describe the different states of a component and how it changes based on events

18
New cards

Function of Class Diagrams

Detail class attributes (data) and behaviours (methods)

19
New cards
<p>What kind of diagram is this?</p>

What kind of diagram is this?

Activity diagram

20
New cards

What is a decision node?

Diamond shape. Allows for different logic paths

21
New cards

What is encapsulation?

Client sees result while code handles math and logic

22
New cards
<p>What diagram is this?</p>

What diagram is this?

State diagram

23
New cards
<p>What diagram is this?</p>

What diagram is this?

Use case diagram

24
New cards

What are actors? (3)

Humans. Organisations. External Appliances

25
New cards

Function of class diagrams

Defines static state and dynamic behaviour

26
New cards

What is “this” used for in code?

Refers to current object instance and used to distinguish instance fields and local parameters

27
New cards

What does “this.variable” in code referred to?

Disambiguating shadowed variable

28
New cards

Can class diagrams show multi-class interactions?

Yes

29
New cards

What is Class Communication?

Classes interact via well-defined public interfaces

30
New cards

What is low-coupling?

Changes in one class do not break other communicating classes if the interface remains consistent

31
New cards

What is The Maintenance Trap?

Bad design problems usually surface during the maintenance phase when a new feature or bug fix is required

32
New cards

What is used to evaluate quality?

Coupling and Cohesion

33
New cards

What is coupling?

Degree of interconnectedness between classes

34
New cards

Is high coupling good or low coupling?

Low coupling

35
New cards

What is high coupling?

When changes in one class necessitate changes in several others

36
New cards

Why is high coupling bad (2)

Creates ripple effect. Difficult to maintain and test

37
New cards

Benefit of low coupling?

Enhances reusability and readability

38
New cards

What reduces coupling between classes?

Encapsulation

39
New cards

What should objects be?

Self governing: changes to state only occur via object’s own methods

40
New cards

What is the Internal View?

Hidden properties and logic (implementation)

41
New cards

What is the External View?

Services provided to others (interface)

42
New cards

What do visibility modifiers help with?

Encapsulation

43
New cards

Private accessibility modifier

Accessible only inside the class (protects integrity)

44
New cards

Public accessibility modifier

Accessible from anywhere (defines interface)

45
New cards

What is cohesion?

The diversity of tasks a code unit handles

46
New cards

What is low cohesion?

One unit handles many unrelated tasks

47
New cards

Negative of low cohesion

Dificult to understand/reuse/maintain

48
New cards

What is high cohesion?

One unit does one cohesive task

49
New cards

How does high cohesion save time during the management phase? (3)

  • Facilitates the reuse of methods.

  • Reduces regression as changes are isolated preventing them from affecting other parts of the code.

  • Robust evolution (makes adding new features easier)

Explore top notes

note
MCB_410
Updated 369d ago
0.0(0)
note
Chapter Three: The Social Self
Updated 1144d ago
0.0(0)
note
Resistance and V=IR
Updated 1270d ago
0.0(0)
note
Irregular -oir Verbs
Updated 1248d ago
0.0(0)
note
Animal Farm Test
Updated 1256d ago
0.0(0)
note
MCB_410
Updated 369d ago
0.0(0)
note
Chapter Three: The Social Self
Updated 1144d ago
0.0(0)
note
Resistance and V=IR
Updated 1270d ago
0.0(0)
note
Irregular -oir Verbs
Updated 1248d ago
0.0(0)
note
Animal Farm Test
Updated 1256d ago
0.0(0)

Explore top flashcards

flashcards
Week 3 : Deviance Crime and Law
41
Updated 563d ago
0.0(0)
flashcards
Asi Se Dice Level 3: Chapter 3
77
Updated 1243d ago
0.0(0)
flashcards
Wanted: A Just Right Government
28
Updated 1187d ago
0.0(0)
flashcards
Ser Adjectives
38
Updated 1158d ago
0.0(0)
flashcards
UX-Study
131
Updated 1028d ago
0.0(0)
flashcards
Semester 2 Vocab
120
Updated 1160d ago
0.0(0)
flashcards
Duits woordenschat hobbies
36
Updated 1130d ago
0.0(0)
flashcards
Week 3 : Deviance Crime and Law
41
Updated 563d ago
0.0(0)
flashcards
Asi Se Dice Level 3: Chapter 3
77
Updated 1243d ago
0.0(0)
flashcards
Wanted: A Just Right Government
28
Updated 1187d ago
0.0(0)
flashcards
Ser Adjectives
38
Updated 1158d ago
0.0(0)
flashcards
UX-Study
131
Updated 1028d ago
0.0(0)
flashcards
Semester 2 Vocab
120
Updated 1160d ago
0.0(0)
flashcards
Duits woordenschat hobbies
36
Updated 1130d ago
0.0(0)