#12 inner classes + linear data structures Flashcards
(6 cards)
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
2
Q
list
A
expandable group of one to one elements
3
Q
1st element in list
A
head
4
Q
last element in list
A
tail
5
Q
2 basic list implementation options
A
> arraylist/array
> linked list
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.