1 package javassist.sample.vector; 2 3 public class Sample2 extends java.util.Vector { 4 public Object add(Object[] args) { 5 super.addElement(args[0]); 6 return null; 7 } 8 9 public Object at(Object[] args) { 10 int i = ((Integer) args[0]).intValue(); 11 return super.elementAt(i); 12 } 13 } 14