给你写了3个类: package cn.test;public class A { public void test(){ System.out.println(this.getClass()); System.out.println(this.getClass().getSimpleName()); System.out.println(this.getClass().getName()); }}B类: package cn.test;public class B extends A{ }Test类: package cn.test;public class Test { /** * @param args */ public st
...全文