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ù)寫調(diào)用Actress的代碼,Thread actressThread = new Thread(new Actress(),"Ms.Runnable");總是出問題,問題是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類寫在Actor類外面就可以了
2016-10-13
建議你把你寫的代碼復(fù)制出來,在這個(gè)輸入框有一個(gè)代碼語言可以選