Ch 4 Flashcards

1
Q

Features common to OO languages

A

Classes, instances, message passing, methods, inheritance

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

Immutable

A

Immutable means that once set, the value of the data field cannot subsequently be changed.

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

Interface

A

An interface defines the protocol for certain behavior but does not provide an implementation.

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

Mutual recursion

A

When two or more classes have references to the other.

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

Inner class

A

A class definition written inside of another.

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

Visibility modifiers

A

The keywords public and private that are used to control the visibility, and hence the manipulation, of class features.

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

Getter and setter functions

A

Sometimes termed accessors and mutators, these are methods that provide access to data fields. By using methods rather than providing direct access, programmers have greater control over the way data is modified and where it can be used.

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

Constant, or immutable, data fields

A

These data fields are guaranteed to not change during the course of execution.

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

Class data fields

A

The particular paradox arises over the initialization data fields that are shared in common among all instances of a class.

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