第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

HelloWorld 在這個(gè)show()方法里面不能用o代替嗎?

public void show() {?

System.out.println("外部類(lèi)中的name:" + ?HelloWorld.this.name );

System.out.println("內(nèi)部類(lèi)中的name:" + name ? ? ? ? ? ? ? ? );

System.out.println("外部類(lèi)中的age:" + age);

}


}

已經(jīng)在main函數(shù)里面創(chuàng)建外部對(duì)象時(shí),將o代替了HelloWorld???為什么運(yùn)行就說(shuō)不行

正在回答

2 回答

沒(méi)問(wèn)題 HelloWorld的類(lèi)的作用域比 main大 把你不好使的代碼貼上來(lái) 我看下

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

Vleyong 提問(wèn)者

error: cannot find symbol System.out.println("?????name?" + o. this.name ); ^ symbol: class o location: class HelloWorld.Inner 1 error
2015-01-17 回復(fù) 有任何疑惑可以回復(fù)我~
#2

Vleyong 提問(wèn)者

已經(jīng)私信您了,這貼不了這么長(zhǎng)的代碼
2015-01-17 回復(fù) 有任何疑惑可以回復(fù)我~

應(yīng)該在外面 作用域不對(duì)

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

Vleyong 提問(wèn)者

也就是說(shuō) 即使你在main 函數(shù)里面調(diào)用了從了class中的方法 也不能行??HelloWorld o=new HelloWorld();
2015-01-17 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

HelloWorld 在這個(gè)show()方法里面不能用o代替嗎?

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)