当前位置: 代码迷 >> J2SE >> 接口有关问题.
  详细解决方案

接口有关问题.

热度:66   发布时间:2016-04-24 00:57:53.0
接口问题...在线等!!!

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

------解决方案--------------------
这种写法最好不要用。通常都是别人用来考试用的。
  相关解决方案