已知方法定义为public double compute(double x, double y),以下属于对该方法重写的是( )。
A.
public int compute(int x, int y) { }
B.
public double compute(double x) { }
C.
public double compute(double x, double y) { }
D.
public double compute(double x, double y, double z) { }