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

【初学者问】final class 如何new

2013-11-08 
【菜鸟问】final class 怎么newpublic final class chessInfo{}主函数里需要调用chessInfo.xxx,请问怎么new?

【菜鸟问】final class 怎么new
public final class chessInfo{}

主函数里需要调用chessInfo.xxx,请问怎么new?

new chessInfo(); 好像不行。
[解决办法]
main()里new chessInfo(),周期就是main()方法里。

楼主代码第三行new chessInfo();  chessInfo这个类没有写。。


还有后面的A.computer(),在chessPlayer这个类中没有computer()这个方法。

input_check_x_y(); 像这个,这不对吧,不知道楼主要表达的意思

楼主这段代码编译都不过吧【初学者问】final class 如何new

热点排行