Actress類應該是靜態類么。。
為什么我的new Thread(new Actress(), "Ms.Runnable");這句上的new Actress()爆出這個下面這個錯誤。但我把Actress類前面加成static就好了,老師的Actress不是靜態類但卻沒有報錯。。 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-02-28
先搞清楚static 的作用,就是共享,如果一個類要被聲明為static的,只有一種情況,就是靜態內部類
2016-03-24
我也是加了一個STATIC 才能運行 不然就一直報錯