01: package sample.vector; 02: 03: public class Sample extends java.util.Vector { 04: public void add(X e) { 05: super .addElement(e); 06: } 07: 08: public X at(int i) { 09: return (X) super.elementAt(i); 10: } 11: } 12: 13: class X { 14: }