Didn't test this, but if you want the class type, you have to call getClass()
.
public class BClass implements InterfaceX {
@Override
public void methodX() {
}
public void callAClassMethod() {
AClass aClass = new AClass();
aClass.Method(this.getClass());
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…