class Foo extends java.util.Vector { int method() { return super.toString(); } }