//继承父类的变量值
public int warning=super.getWarning();
//method
public void flow() throws Exception
{
if(warning<50)
{
System.out.print("okokok");
}else
throw new Exception("垮了垮了垮了");
}
throws Exception报错,请问怎么回事?
public int warning=super.getWarning();
//method
public void flow() throws Exception
{
if(warning<50)
{
System.out.print("okokok");
}else
throw new Exception("垮了垮了垮了");
}
throws Exception报错,请问怎么回事?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货