Java继承、多态面试题
public class A { public int a = 0; public void fun(){ System.out.println("-----A-----"); }}public class B extends A{ public int a = 1; public void fun(){ System