557: Mainline
Instances of the Vector
class
differ substantively from array instances:
- You can store any number of elements in any vector. Vectors are not of
fixed size.
- You can add elements to the front or back of a vector, or even insert
elements into the middle without replacing an existing element.
- You can store only class instances in vectors. Vectors cannot hold
elements of primitive type.