java继承与多态——小测试
package test1; class A { public String s = "123"; public void show(A obj){ System.out.println("A and A"); } public void show(D obj){ System.out.println("A and D"); }}class B extends A{ public String s = "456".