应该是a中的一个获取a的超类的方法。可以这样实现:
public Class getSuperClass(){
b bb = new b();
return bb.getClass();
}

解决方案 »

  1.   

    getSuperclasspublic Class getSuperclass()Returns the Class representing the superclass of the entity (class, interface, primitive type or void) represented by this Class. If this Class represents either the Object class, an interface, a primitive type, or void, then null is returned. If this object represents an array class then the Class object representing the Object class is returned. Returns:
    the superclass of the class represented by this object.