import java.lang.Integer; import java.util.Vector; public class A { m(Integer i) { } } public class B extends A { } public class C extends B { m(Integer i) { } } public class D extends C { } public class Inherit { /* main(d, i) { d.m(1); } */ main(v, i) { var aa = v.elementAt(0); aa.m(1); } }