首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

接口有关问题.

2012-05-27 
接口问题...在线等!!!interface A{double test() }interface B{void test() }public class TestInterfac

接口问题...在线等!!!

interface A
{
  double test() ;
}
interface B
{
  void test() ;
}
public class TestInterface implements A,B{
  //现在里面怎么办?????
//public double test()
//{
//return 1.0 ;
//}
//public void test(){}
}

[解决办法]
这种写法最好不要用。通常都是别人用来考试用的。

热点排行