当前位置: 代码迷 >> Java相关 >> [求助]java 运行错误???
  详细解决方案

[求助]java 运行错误???

热度:287   发布时间:2006-12-20 22:51:02.0
[求助]java 运行错误???
public interface cal
{
double square(double x);
}
public class father implements cal
{
public double square(double x)
{
rets=2*x*x;
return rets;
}
}
class son extends father
{
public static void main(String args[])
{
double p;
son so=new son();
p=so.square(9.0);
System.out.println("The double's square is:"+p);
}
}
为什么编译时会出现这样的错误如图

请高手解决一下,使其能运行,希望详细点,我刚学java新手
搜索更多相关的解决方案: 运行  java  

----------------解决方案--------------------------------------------------------
you ren ma

----------------解决方案--------------------------------------------------------
  相关解决方案