以下的程序的执行结果为? ()
public class Demo{
public double getHeight(){
return 171.0;
}
public int getHeight (){
return 171;
}
public static void main(String[] args){
Demo demo = new Demo();
System.out.println(demo.getHeight());
}
}
A.输出171.0
B.输出171
C.第2行和第5行编译报错
D.第10行编译报错