No enclosing instance of type Actor is accessible. Must qualify the allocation with an enclosing instance of type Actor (e.g. x.new A() where x is an instance of Actor).
我在main()函數(shù)寫(xiě)調(diào)用Actress的代碼,Thread actressThread = new Thread(new Actress(),"Ms.Runnable");總是出問(wèn)題,問(wèn)題是No enclosing instance of type Actor is accessible. Must qualify the allocation with an enclosing instance of type Actor (e.g. x.new A() where x is an instance of Actor).
求教各位!
2016-10-19
把Actress類(lèi)寫(xiě)在Actor類(lèi)外面就可以了
2016-10-13
建議你把你寫(xiě)的代碼復(fù)制出來(lái),在這個(gè)輸入框有一個(gè)代碼語(yǔ)言可以選