• 2022-07-23
    现有[br][/br]​ public class Parent{[br][/br]​ public void change (int x){[br][/br]​ }[br][/br]​ }[br][/br]​ public class Child extends Parent{[br][/br]​ //覆盖父类change方法[br][/br]​ }[br][/br]​下列哪个声明是正确的覆盖了父类的change方法
    A: protected void change (int x){}
    B: public void change(int x, int y){}
    C: public void change (int x){}
    D: public void change (String s){}