public class Parent{ public void change(int x){} } public class Child extends Parent{ //覆盖父类change方法 } 下列哪个声明是正确的覆盖了父类的change方法?
A.
protected void change(int x){}
B.
public void change(int x, int y){}
C.
public void change(String s){}
D.
public void change(int x){}