指出下列程序中的错误 final class First { private int a = 1; int b = 2; } class Second extends First { protected int a = 2; public void method() { System.out.println(a + b); } }
A. println方法中参数类型错误,该方法只能接受字符串类型数据
B. 子类中重复定义变量a
C. Second类不能继承First类
D. 关键字final不能修饰First类