欢迎使用题易搜网站

题易搜

在线题库

[多选]  【多项选择题】下列程序中注释的哪两个代码(A,B,C,D)是错误的(无法通过编译)?classFather{privateintmoney=12;floatheight;intseeMoney(){returnmoney;//A}}classSonextendsFather{intheight;intlookMoney(){intm=seeMoney();//Breturnm;}}classE{publicstaticvoidmain(Stringargs[]){Sonerzi=newSon();erzi.money=300;//Cerzi.height=1.78F;//D}}

发布时间:2024-03-05 0次
ABC
您需要登录才可以下载或查看,没有账号?会员注册