class Base { static void foo() { // I want to get Derived class here // Derived.class } } class Derived extends Base { } Derived.foo();
谢谢你的帮助!@H_301_6@
大卫@H_301_6@
但是老实说,任何需要知道调用类的类的静态方法都应该是一个实例方法.@H_301_6@