A vector class provides the ability to execute a growable array of objects. A vector proves to be very useful if you don't know the size of the array in advance or if we need one that can change the size over the lifetime of a program.