PPT Slide
- Must have an object of type Vector instantiated via new( ) to get an instance of Vector.
- All rules of good OO programming apply.
- Thus, access by requesting services via methods, not via direct access (such an array).
size( ) returns current number of elements.
elementAt(int index) returns reference to element at specified index.
insertElementAt( Object obj, int index ) insertion into linked list (but slower);
addElement (Object obj) adds to end.