Home Segments Top Top Previous Next

566: Mainline

The definitions of the addElement, insertElementAt, and setElementAt methods specify that the element added shall be an instance of the Object class. Because all classes descend from the Object class, you can add any class instance to a vector.