討論串[問題]請問JAVA static及non-static的問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
> 但是non-static不是可以直接存取static嗎???. > public class Hello {. > void mymethod (int a). > {. > System.out.println(a);. > System.out.println(this.a);. > Sys
(還有211個字)
內容預覽:
請問為什麼在mymethod裡面可以用this,但不可以用e. 我用eclipse所得到error message是 e cannot be resloved. 是因為e是main裡面的區域函式嗎???. 但是non-static不是可以直接存取static嗎???. public class He
(還有375個字)
首頁
上一頁
1
下一頁
尾頁