摘要:
方法重写 静态方法的调用只和左边定义的数据类型有关。 public class B { public static void test(){ System.out.println("B=>test"); } } public class A extends B{ public static void 阅读全文
摘要:
Super详解 super 父类 this 当前类 public class Person { public Person(){ System.out.println("Person无参执行了"); } protected String name="father"; public void prin 阅读全文
摘要:
创建对象内存分析 public class Pet { public String name; public int age; public void shout(){ System.out.println("叫了一声"); } } public class Application { public 阅读全文