Chapter 8: Designing Classes Flashcards

1
Q

cohesive

A

A class is cohesive if its features support a single abstraction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Unified Modeling Language

A

A notation for specifying, visualizing, constructing, and documenting the artifacts of software systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

accessor method

A

A method with a name, parameter variable types, and return type but
without an implementation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

mutator method

A

A method that changes the state of an object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

immutable class

A

A class without a mutator method.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

side effect

A

An effect of a method other than returning a value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

static variable

A

A variable defined in a class that has only one value for the whole class, and which can be accessed and changed by any method of that class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

static method

A

A method with no implicit parameter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

package

A

A collection of related classes. The import statement is used to access one or more classes in a package.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly