单项选择题

A.public float getNum(int y){return x+y;}
B.public float getNum(float d){return x+d;}
C.public float getNum(double d){return (int)(x+d);}
D.public double getNum(){return x;}