【单选题】假设以下代码 public class Parent { public int addValue( int a, int b) { int s; s = a+b; return s; } } class Child extends Parent { } 选项中______方法可以正确加入类Child中,且父类的方法不会被覆盖。
A.
int addValue( int a, int b ){// do something...}
B.
public void addValue (){// do something...}
C.
public int addValue( int a, int b )throws MyException {//do something...}
D.
public float addValue ( int a ,int b, float b=1.0 ){// do something...}