给定java代码如下所示,在A处新增下列( )方法,是对cal方法的重载 public class Test { public void cal(int x, int y, int z) { } //A }
A.
public int cal(int x,int y,float z){return 0;}
B.
public int cal(int x,int y,int z){return 0;}
C.
public void cal(int x,int z){}
D.
public viod cal(int z,int y,int x){}