![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
现有publicclassParenttpublicvoidchange(intx){))publicclassChildextendsParent{//覆盖父类change方法}下列哪个声明是正确的覆盖了父类的change方法?()
A.protectedvoidchange(intx){}
B.publicvoidchange(intx,inty){}
C.publicvoidchange(intx){}
D.publicvoidchange(Strings){}
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_q_ckda.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_q_wyda.png)
- · 有6位网友选择 B,占比31.58%
- · 有4位网友选择 C,占比21.05%
- · 有3位网友选择 B,占比15.79%
- · 有2位网友选择 D,占比10.53%
- · 有2位网友选择 A,占比10.53%
- · 有1位网友选择 A,占比5.26%
- · 有1位网友选择 C,占比5.26%