首页 > 其他 > 详细

判断下列语句是否正确,如果有错误,请指出错误所在?interface A{

时间:2018-08-29 11:55:35      阅读:161      评论:0      收藏:0      [点我收藏+]

判断下列语句是否正确,如果有错误,请指出错误所在?

 

interface A{

 

int add(final A a);

 

}

 

class B implements A{

 

long add(final A a){

 

return this.hashCode() + a.hashCode();

 

}

 

}

 

解答:返回值不是long类型

 

判断下列语句是否正确,如果有错误,请指出错误所在?interface A{

原文:https://www.cnblogs.com/borter/p/9552784.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!