WEEK 3 — Arrays, Objects, and UML

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

1/15

encourage image

There's no tags or description

Looks like no tags are added yet.

16 Terms

1
New cards
What is an array? A fixed-length collection of values of one type.
2
New cards
What is an array element? One value stored in an array.
3
New cards
What is an index? A numbered position used to access an element.
4
New cards
What is zero-based indexing? The first element is at index 0.
5
New cards
What is `.length` for arrays? A field containing the number of array elements.
6
New cards
What is an enhanced `for` loop? A loop that visits each element of an array or iterable.
7
New cards
What is an object array? An array containing references to objects.
8
New cards
What is `null`? A reference value indicating no object.
9
New cards
What is an enumeration (`enum`)? A type defining a fixed set of named constants.
10
New cards
What is UML? Unified Modeling Language; diagrams used to model systems.
11
New cards
What is a UML class diagram? A diagram showing classes, members, and relationships.
12
New cards
What is an association? A relationship between classes or objects.
13
New cards
What is aggregation? A whole-part relationship with independent parts.
14
New cards
What is composition? A strong whole-part relationship with dependent parts.
15
New cards
What is a class attribute? Data associated with a class or its objects.
16
New cards
What is a class method? A behavior defined within a class.