Polymorphism in Java
Vector v = new Vector( );
v.addElement("A string");
Generality of type can be achieved by declaring formal parameters to be of class Object.
Vector returnTwo(Object obj) {
Vector pair = new Vector( );
pair.addElement(obj.clone());