#12 inner classes + linear data structures Flashcards

1
Q

nested class (static nested class)

A
inner class declared a static class
>can only access the outer classes static fields and methods
>no links between inner and outer objects/instances
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

list

A

expandable group of one to one elements

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

1st element in list

A

head

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

last element in list

A

tail

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

2 basic list implementation options

A

> arraylist/array

> linked list

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

node class

A

the node class should be an inner class of linked list, because it is a private way to give linked list access to the fields in node.

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